loop
#include <stdio.h>
int main()
{
int n=100;
for(int i=100;i>=0;i--){
printf("%d\n",i);
}
return 0;
}
• Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.
The program prints out numbers from 1 to 100 in reverse order.
Comments
Leave a comment