C Program Print Natural Numbers First Ten

By | March 7, 2020

C Program Print Natural Numbers First Ten

Output:

Natural Numbers from 1 to 10 are:
1
2
3
4
5
6
7
8
9
10

 

#include<stdio.h>
int main()
{
    int n,i;
    
	printf("Numbers from 1 to 10 are:\n");
	
	for(i=1;i<=10;i++)
	printf("%d\n", i);
    
    return 0;
}

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *