tashaunalewis574 tashaunalewis574
  • 24-11-2021
  • Computers and Technology
contestada

What is the output of the statements below? int a = 10; int b = 20; int count = 0; if (a > 5) if (b > 5) { count ++; } else count = 7;

Respuesta :

ratedgibbon216 ratedgibbon216
  • 24-11-2021

Answer:

The output of count would be 1.

Explanation:

The first if statement is true. Since 10 > 5

The second if statement is true. Since 20 > 5

So,

count ++;  // That increments the variable count by 1

the else statement is not provoked since the if statements were correct.

Answer Link

Otras preguntas

Which of these best explains the ability of small insects to walk on the surface of still water?
A positive integer is subtracted from it's square. The units digit of the result could be which of the following
What is the answer in standard form for 314,207
720 is 1/10 of what number
the measure of the angle of hands of a clock at 8:00
Explain please. 1.) -1/8 x -3 + 2 2.) -1/8 x 6 + 2
By studying the suffix, the reader can determine that “impetuous” most likely means
What is he sum or product of 8 times 51
Need Help with question #6
what does evaporation mean