Friday 4 September 2015

WAP to print counting from 1 to 10.

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

output
1
2
3
4
5
6
7
8
9



10

No comments:

Post a Comment