Join Regular Classroom : Visit ClassroomTech

C++ Coding Question 3

Write a program that asks you to type a number. After each entry, the application reports the cumulative sum of entries. The program terminates when you enter a zero.

  • Here takeinput(), the function takes the input and stores it to num.

  • A running total is the summation of a sequence of numbers which is updated each time a new number is added to the sequence, by adding the value of the new number to the previous running total.

Categories
Pages
Recent Posts