StacySams2271 StacySams2271
  • 02-03-2020
  • Computers and Technology
contestada

What is the output of the following code snippet? int age = 25; if (age > 30) { System.out.println("You are wise!"); } else { System.out.println("You have much to learn!"); }

Respuesta :

ijeggs
ijeggs ijeggs
  • 04-03-2020

Answer:

You have much to learn!

Explanation:

In the question the variable age has been declared and assigned the value of 25.

The if Statement checks if age >30 to output "You are wise!" else it will output "You have too much to learn"

Since age has been assigned the value of 25, we expect the program to execute the else block which is "You have too much to learn"

Answer Link

Otras preguntas

Which of the following is a belief of Puritanism?
3(4+6)-16 what does it equal and how did you get the answer
Describe the ethical decision-making process that Human & Health Services must navigate when making decisions that may benefit some at the expense or risk o
Complete following sentence: Une femme qul dlrlge les spectateurs vers leurs places s'appelle _____?a. une ouveruse b. une danseusec. une critiqued. une rangée​
Est-ce que tu mal? dort dormit dors dormis
How do wetlands reduce flooding and erosion? (Site 1)
What did the history of the religion of juaism saw ?
please don't copy from Google please help me fast and show all your work. ​
Please help me with answer I need help
can someone help me with this please ​