C programs
C programs
To see the complete list of all C programs present in this page, please click here
Home
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please write here, your opinion about this C program