Write a program to display numbers from 1-50 in reverse order

//this is a program to display numbers from 1-50 in reverse order
#include<stdio.h>
#include<conio.h>
void main ()
{
int i=50;

printf("\n\nDisplaying Numbers From 1-50 in Reverse Order");

while(i>=1)
{
printf("\n%d",i);
i--;
}
getch();
}

Previous
Next Post »