#include<stdio.h>
#include<conio.h>
void multi_table(int x,int n)
{
int i,y=x;
for(i=1;i<=n;i++)
{
printf("\n\t%d * %d = %d\n",x,i,y);
y+=x;
}
}
void main()
{
int num,limit;
clrscr();
printf("\nEnter number\t: ");
scanf("%d",&num);
printf("\nEnter the limit\t: ");
scanf("%d",&limit);
printf("\n Multiplication table\n");
multi_table(num,limit);
getch();
}
Algorithm
multi_table()step1:start
step2:intilize y<-x i="" p="">step3:check whether i<= n,then go to step 4
else go to step 8
step4:print x,i,y
step5:y=y+x
step6:i=i+1
step7:go to step 3
step8:stop
main()
step1:start
step2:read num,limit
step3:call multi_table(num,limit)
step4:stop-x>