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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis Design Questions!