Friday 4 September 2015

WAP to print counting from 10 to 1

#include<stdio.h>
#include<conio.h>
void main()
{int a;
clrscr();
for(a=10;a>=1;a--)
printf("\n%d",a);
getch();
}

output
10
9
8
7
6
5
4
3
2
1

No comments:

Post a Comment