Header Ads

Hii,I am Anand Nayak.This blogger is make for specially basic programs of some language.

print of any table

#include<stdio.h>
#include<conio.h>
void main()
{
      int x,i,d;
        clrscr();
           printf("enter the number whose table you want print=");
          scanf("%d",&x);
            i=1;
        l1:
          if(i<=10)
         {
           d=x*i;
          printf("%d*%d=%d\n",x,i,d);
            i++;
          goto l1;
       }
getch();
}

No comments