Unit 2 Graded Exercise 4: Decreasing Values in a Loop
Instructions
You will write C code for a program that does the following
- Uses a “for” loop.
- Asks the user for a number.
- Prints the values from that number down to 1. Use any kind of loop you like to accomplish this. (Hint: You will have to use the decrement operator (–).
Deliverables-
- A screenshot of your code.
- A screenshot of your output including the Title Bar of the console window.
- Separately, upload your code file (“.c”).