Write an input statement validation loop that prompts the user to enter a number less than 20 or greater than 75. (2, 4, 5)
Rewrite the following as a for loop. (2, 4)
int i = 0, value = 0;
while (i <= 20)=””>
if (i % 2 == 0 && i <=>
value = value + i * i;
else if (i % 2 == 0 && i > 10)
value = value + i;
else
value = value – i; i = i + 1;
cout
what is the output of this loop?
“value=””>
what is the output of this loop?
>