Question: I am trying to write a C program in Putty that produces this output: Enter an integer between 1 and 100: 25 while loop: 25
I am trying to write a C program in Putty that produces this output:
Enter an integer between 1 and 100: 25
while loop:
25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6
5 4 3 2 1
do-while loop:
25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6
5 4 3 2 1
for loop:
25 24 23 22 21 20 19 18 17 16
15 14 13 12 11 10 9 8 7 6
5 4 3 2 1
Here is another sample output:
Enter an integer between 1 and 100: -5
while loop:
do-while loop:
-5
for loop:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
