After execution of the following code, what will be the value of inputValue? int inputValue = 0;
Question:
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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: