Program to print table of Given No. using “for” loop.

#include<stdio.h>
#include<conio.h>
void main()
{
   int i,res,num;
   clrscr();
   printf("\nEnter Number");
   scanf("%d",&num);
   for(i=1;i<=10;i++)
     {
     res=num*i;
     printf("\n\n%d",res);
     }
   getch();
}

Leave a Reply