Write a program which asks the user to enter an integer the


C Programming Assignment

Write a program which asks the user to enter an integer. The program will then print out all the numbers between 1 and the entered number (inclusive) as well as the total of all these numbers

It must use a "for" loop to print the numbers

Example interaction:

Please enter a number: 5

1

2

3

4

5

The total is 15

Submit a copy of your ".c" file as well as a screenshot of the program running with an entered number of "4".

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program which asks the user to enter an integer the
Reference No:- TGS02287590

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)