Wednesday, May 16, 2018

C program to display integers from one to ten.

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

Output
1
2
3
4
5
6
7
8
9
10

No comments:

Post a Comment

Please write here, your opinion about this C program