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
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.