Using a for loop, how could you write a C code to count down from 10 to 1 and display each number on its own line?
:
for (int i = 0; i>=0, i--){ printf("%d\n", i); }//end of loop
int i; for (i=1; i<=10; i++){ printf("%d", i); }
int i = 10; while (i>0){ printf("%d\n", i); i--; }
int i; for (i= 10; i>0; i--){ printf("%d\n", i); }// end of loop