Ask Question
27 December, 19:20

Write a loop that asks the user to enter a number. the loop should iterate 10 times and keep a running total of the numbers entered.

+4
Answers (1)
  1. 27 December, 21:41
    0
    int sum = 0;

    int number;

    for (int i=0; i<10; i++) {

    printf ("Enter an integer number: ");

    scanf_s ("%d", &number);

    sum + = number;

    }

    printf ("The sum is %d", sum);
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a loop that asks the user to enter a number. the loop should iterate 10 times and keep a running total of the numbers entered. ...” 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