Help with c programming

profileaalhajri1

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".

 

    • 9 years ago
    • 5
    Answer(2)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      total.zip

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      total.jpg
    Bids(0)