Skip to main content
WAP to print first ten natural numbers using "For Loop"
//WAP to print first ten natural numbers using "For Loop"//
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for (i=1; i<=10; i=i+1)
{
printf("%d\n", i);
}
getch();
}
- The Input and Output of this program is shown in the pictures below:- INPUT
OUTPUT
Comments
Post a Comment