Ad

#include<stdio.h>

void multi_table (int k ) {

int j=1;

while(j<=12)
{
    printf("%d * %d =%d \n", k,j, k*j);
    j++;
}

}

int main()
{
int i;

printf("enter the number you want to get it's multiplication table : ") ;
scanf("%i",&i) ;

multi_table(i) ;

return 0;

}