Solved

After Execution of the Following Code, What Will Be the Value

Question 37

Multiple Choice

After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time?
cin >> input_value;
if (input_value > 5)
\quad input_value = input_value + 5;
else if (input_value > 2)
\quad input_value = input_value + 10;
else
\quad input_value = input_value + 15;


A) 15
B) 10
C) 25
D) 0
E) 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions