C Program for Multiplication Table using Goto Statement

include

include

int main ()
{
int n, count;
printf (“enter a number to print table:”);
scanf (“%d”, &n);

count = 1;

start:
if (count <= 10)
{
printf (“%d*%d=%d\n”, n, count, n * count);
count++;
goto start;
}

return 0;
}

OUTPUT:

enter a number to print table:8
81=8 82=16
83=24 84=32
85=40 86=48
87=56 88=64
89=72 810=80

Leave a Reply

Your email address will not be published. Required fields are marked *