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

president eisenhower enunciated of the "domino theory" ultimately became a main justification for
What is f(3)? f(x)=(3x^2 +9)/x+1
What does Te Quiero Mucho mean?
Which of the following is an example of how our brains organize our perceptions?
La división sintética y los cocientes notables nos sirven para
Susie rubbed the plastic wand with a silk cloth. She brought the wand close to the top of the electroscope. Note what happened when she did this. How did Susie
Which best describes the bond shown
If you were to find the verse talking about being set free, which passage would you look up? John 8:36 Psalm 107:8 Genesis 3:15 Galatians 3:3
a dvd player remote control costs 266 a college student has 813 in her savings account how much will she have left in her savings accounts after she buys the dv
help ASAP!!! .........................