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();
}
#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();
}
Post a Comment