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

how do i convert 0.0002405 into scientific notation
A factory adds three red drops and two blue drops to coloring to white paint to make each pint of purple paint. The factory will make 50 gallons of this purple
write an expression for the difference between 10 and x
*HISTORY HELP ASAP!!!!!* During the bus boycotts, many laid-off bus drivers were deputized as extra policemen. True False
what is a healthy BMI and waist circumference for a female
Can somebody explain to me how they got 3^4(x) = 3^3(x+2)? Then explain what happened to the 3 in 3^4 and the 3 in 3^3? Please and thank you, I don't understand
Sperm begin in the _______.
why did the mexicam government allow americans to settle in texas?
The startup division made 80% of 1/2 of the established division. The startup division’s growth was 1/3 greater than the established division’s. If the division
You are a nurse in a hospital. You are told to move a patient through three corridors each measuring 14.33 meters. Because of friction it requires a constant fo