Answers for "reverse count in C"

C
0

reverse count in C

#include <stdio.h>

int main() {
   int i, start, end;

   start = 1;
   end = 10;

   //reverse counting, we'll interchange loop variables

   for(i = end; i >= start; i--) 
      printf("%d\n", i);

   return 0;
}
Posted by: Guest on October-05-2021

Code answers related to "C"

Browse Popular Code Answers by Language