reverse count in c

Solutions on MaxInterview for reverse count in c by the best coders in the world

showing results for - "reverse count in c"
Maureen
16 Nov 2018
1#include <stdio.h>
2
3int main() {
4   int i, start, end;
5
6   start = 1;
7   end = 10;
8
9   //reverse counting, we'll interchange loop variables
10
11   for(i = end; i >= start; i--) 
12      printf("%d\n", i);
13
14   return 0;
15}
similar questions
queries leading to this page
reverse count in c