Ask 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 >> 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. 3 December, 06:07
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers