To print table by using for loop in C.


 #include<stdio.h>

#include<conio.h>

int main( )

{

int i;

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

{

printf("%d\n",i*2);

}

getch();

return 0;

}

To run








output:






No comments:

Post a Comment

theengineerschoice01@gmail.com