Tuesday 1 October 2013

C PROGRAM FOR SIMPLE FOR LOOP(HAVING i--)

#include<stdio.h>
#include<math.h>
void main()
{
int n,i;
clrscr();
printf("enter the limit \n");
scanf("%d",&n);
for(i=n;i>=0;i--)
printf("%d\n",i);
getch();
}

No comments:

Post a Comment