9. Using the online compiler
• Write a program that counts down from 100 to 0 using a for loop.
• Add this source code to your logbook.
• Run the program and add the output of this program to your logbook.
• Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.
#include <stdio.h>
int main()
{
int n=100;
for(int i=100;i>=0;i--){
printf("%d\n",i);
}
return 0;
}
Comments
Leave a comment