To print 1 to 100 number using for loop in C.


 #include<stdio.h>

#include<conio.h.

int main()

{

int i;

for(i=0; i<=100; 1++)

{

printf(%d \n", i );

}

getch( );

return 0;

}

To run:









output:









No comments:

Post a Comment

theengineerschoice01@gmail.com