Ask Question
5 December, 17:48

After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time?

cin >> input_value;

if (input_value > 5)

input_value = input_value + 5;

else if (input_value > 2)

input_value = input_value + 10;

else

input_value = input_value + 15;

+2
Answers (1)
  1. 5 December, 20:49
    0
    Cin >> input_value;

    if (input_value > 5)

    input_value = input_value + 5;

    else if (input_value > 2)

    input_value = input_value + 10;

    else

    input_value = input_value + 15;

    The right answer is : 15
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time? cin >> ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers