C Program using FOR Statement
Problem:Write a program that will print the numbers 1 to 10 using a FOR Statement.
Program:
#include"stdio.h"
int x;
main( )
{
for (x=1;x<=10;x++)
printf ("%d"\n",x);
getch( );
}
Output:
1
2
3
4
5
6
7
8
9
10
Labels: eRnz
0 Comments:
Post a Comment
<< Home