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

The term bildungsroman is used to describe _____. a literary device a historical record a novel that focuses on pastoral imagery a novel that focuses on the co
Which is greater 9 c or 70 fl oz
The Classical period saw a renewed fascination with the opera genre. T or F
A terrorist organization mailed anthrax to a member of Congress. Which of these is the type of weapon used by this terrorist organization? a.biological weapon b
-2(-1+6)= i dont know how to show the work
Which sentence is written in passive voice? A. Our biggest attraction is the reptile farm. B. The town is run by Mayor Alejandro Navarro. C. The tourism agency
Similarly between cystic fibrosis and Down syndrome
Simplify 8i^6+6i^5-5i^3-3i^2-7i-9 A) -14+4i B) -4+4i C) -10i D) -14-18i
Write the equations included in the same set of related facts as 6 ✖️8=48
i need help for doing these two problems ASAP