Computer Science, asked by kailanydas68, 1 month ago

write a c program to print the first 100 natural numbers using for loop​

Answers

Answered by devarchanc
4

C Programming

Question:

Write a c program to print the first 100 natural numbers using for loop​

Explanation:

#include <stdio.h>

void main()

{      

   int i;

printf ("The first 100 natural numbers are:\n");

for (i=1;i<=100;i++)  /*using loop here*/  

 printf("%d \n",i);   /*printing number here*/  

}

Similar questions