Question: After execution of the following code, what will be the value of inputValue? int inputValue = 0; if (inputValue > 5) inputValue += 5; else
After execution of the following code, what will be the value of inputValue?
int inputValue = 0;
if (inputValue > 5)
inputValue += 5;
else if (inputValue > 2)
inputValue += 10;
else inputValue += 15;
a. 15
b. 10
c. 25
d. 0
e. 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
