Ask Question
4 April, 11:10

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;

+4
Answers (1)
  1. 4 April, 11:48
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers