C Program to Print 1 to 100 Numbers using Loop
hello friends in this program print number 1 to 100 using for loop in c program
first you declare int i variable and loop 100 times
C Program to Print 1 to 100 Numbers using For Loop
#include<stdio.h>
#include<conio.h>
main()
{
int i;
for(i=1;i<=100;i++)
{
printf("%d\n",i);
}
}
{
int i;
for(i=1;i<=100;i++)
{
printf("%d\n",i);
}
}
C Program to Print 1 to 100 Numbers using While Loop
#include<stdio.h>
main() {
int i=1;
while( i <= 100) {
printf("%d ", i);
i++;
}
}
Post a Comment
If you have any doubts, Please let me know
Thanks!