Write a program to print numbers in reverse order

// this is a program to print numbers in reverse order
#include<stdio.h>
#include<conio.h>
void main()
{
int i,sum=0;

printf("\n\nPrinting numbers from 1-30 in reverse order");

for(i=30;i>=1;i--)
{
printf("\n%d",i);

}

getch();
}

Previous
Next Post »