This is what the instructions say: Extend the function from Exercises 4 and 5 so
ID: 3619573 • Letter: T
Question
This is what the instructions say: Extend the function from Exercises 4 and 5 so that it also outputs a running total as the numbers are printed out in reverse order. For example, the I/O dialog might be the following: Enter positive number, 0 to end: 10 Total: 10 Enter positive number, 0 to end: 20 Total: 30 Enter positive number, 0 to end: 30 Total: 60 Enter positive number, 0 to end: 0 The function then outputs 30 Total: 30 20 Total: 50 10 Total: 60 This is what the instructions say: Extend the function from Exercises 4 and 5 so that it also outputs a running total as the numbers are printed out in reverse order. For example, the I/O dialog might be the following: Enter positive number, 0 to end: 10 Total: 10 Enter positive number, 0 to end: 20 Total: 30 Enter positive number, 0 to end: 30 Total: 60 Enter positive number, 0 to end: 0 The function then outputs 30 Total: 30 20 Total: 50 10 Total: 60Explanation / Answer
#include Void main(){ clrscr(); int num,count; coutnum; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.