Program to print 1 to 10 numbers.
#include <stdio.h>
#include <conio.h>
int main()
{
int i = 1;
for (i = 1; i <= 10; i++)
{
printf ("%d", i);
}
return 0;
}
Output -
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <conio.h>
int main()
{
int i = 1;
for (i = 1; i <= 10; i++)
{
printf ("%d", i);
}
return 0;
}
Output -
1
2
3
4
5
6
7
8
9
10