Program to print table of Given No. using “do-while” loop.

#include<stdio.h>
#include<conio.h>
void main()
{

  int i=0,res,num;
  clrscr();
  printf("\n Enter Number");
  scanf("%d",&num);

  do
  {
  res=num*i;
     printf("\n %d ",res);
     i++;
  }while(i<=10);

    getch();
}

Leave a Reply