#include<stdio.h>
#include<conio.h>
int table(int ta, int b);
int main()
{
int number,a;
printf("Enter a number: ");
scanf("%d",&number);
for(a=1;a<=10;a++){
printf("%d * %d = %d \n", number, a, table(a, number));
} //function call
getch();
}
int table(int ta, int b)
{
//int a;
//for(a=1;a<=10;a++)
return b*ta;
}
#include<conio.h>
int table(int ta, int b);
int main()
{
int number,a;
printf("Enter a number: ");
scanf("%d",&number);
for(a=1;a<=10;a++){
printf("%d * %d = %d \n", number, a, table(a, number));
} //function call
getch();
}
int table(int ta, int b)
{
//int a;
//for(a=1;a<=10;a++)
return b*ta;
}