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

When water freezes, it contracts or expands
Check all of the situations that you would expect to be approximately normally distributed. -the SAT scores of high school seniors -the salaries for members of
which describes 1/8 is it a real number and rational number is it a real number and an irrational number and a natural number is it a real number or rational nu
solve the inequality. x2 +10x+24 ≤ 0
True or false: overuse is likely to occur. true false
Imagina y completa las oraciones Mis manos como........ Su vocecita cual............
Read the following dialogue between Marisa and Roberto from the movie "Hace calor" and answer the question below: Marisa: Hola Roberto, ¿por qué tienes el abri
The u.s. tax burden is high compared to many european countries.. a. true b. false
Guys I need help ASAP thank you very much !
Operating a vehicle in the state of Georgia is considered as giving legal consent to __________.