multiplication table function
#include <stdio.h>
void mult(int n){
int i,x;
printf("The multiplication table for the %d is :\n",n) ;
for (i=0;i<=20;i++){
x=n*i;
printf("%d x %d = %d\n",n,i,n*i);
}
}
int main() {
int n,i,x,r;
printf("enter the number :");
scanf("%d",&n);
mult(n);
return 0;
}