Reverse order of for loop
#include <stdio.h> int main(void) { int i, j; printf("Enter a number: "); scanf("%d", &i); for(j = i; j > 0; j--) printf("%d\n", j); printf("\a"); return 0; }