Solved

After the Following Code Executes, What Is the Value of My_value

Question 37

Multiple Choice

After the following code executes, what is the value of my_value if the user enters 0?
Cin >> my_value;
If (my_value > 5)
My_value = my_value + 5;
Else if (my_value > 2)
My_value = my_value + 10;
Else
My_value = my_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