Starting Vocational Training From 1-May-2024 Get Detail


Write a program in C to display the first 10 natural numbers. 
Expected Output : 1 2 3 4 5 6 7 8 9 10


#include <stdio.h>
void main()
{     
    int i;
    printf("The first 10 natural numbers are: ");
    for (i=1;i<=10;i++)
    {      
        printf("%d ",i);
    }
printf(" ");
}