To print 1 to 10 in C.


 #include<stdio.h>

#include<conio.h.

int main()

{

int i;

for(i=0; i<=10; i++)

{

printf(%d \n", i );

}

getch( );

return 0;

}

To run:











output:



No comments:

Post a Comment

theengineerschoice01@gmail.com