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

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

Leave a Reply