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

The non-operational chain of command runs directly from the president to the secretary of defense and then to the _____.
The sales tax in New York is 8.25%. About how much will a $65.95 pair of shoes cost, including sales tax?
A radio station broadcasts a signal over an area with a 120-mile diameter. The population density of the area is 100 people per square mile. L How many people a
Why is cottage cheese a solution and not a heterogeneous mixture?
The ________ of an adult male is 750 newtons.
Which beatbox describes the relationship between dna, genes, and chromosomes?
What does <3 mean at the end of a message?
Tom buys some shirts for $15 each. He has a coupon for $9 off the total price.if he pays $36,how many shirts,s did he buy?
Is the square root of 41 rational or irrational? is 2π rational or irrational?
Britain created the provinces of upper canada and lower canada when it passed the a. proclamation of 1763. b. constitutional act of 1791. c. british act of u