Ask Question
3 June, 16:59

What is sum after the following loop terminates? int sum = 0; int item = 0; do { item; sum = item; if (sum > 4) break; } while (item < 5);

+1
Answers (1)
  1. 3 June, 19:06
    0
    Int sum = 0;

    int item = 0;

    do

    {

    item;

    sum = item;

    if (sum > 4)

    break;

    } while (item < 5);

    You will generate a compile error, as having (item; ) as a statement on its own is invalid.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is sum after the following loop terminates? int sum = 0; int item = 0; do { item; sum = item; if (sum > 4) break; } while (item < 5); ...” 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