multiplication table function

Solutions on MaxInterview for multiplication table function by the best coders in the world

showing results for - "multiplication table function"
Darby
16 Oct 2019
1#include <stdio.h>
2void mult(int n){
3  int i,x;
4 printf("The multiplication table for the %d is :\n",n) ;
5  for (i=0;i<=20;i++){
6 x=n*i;
7 printf("%d x %d = %d\n",n,i,n*i);
8  }
9} 
10int main() {
11int n,i,x,r;
12printf("enter the number :");
13scanf("%d",&n);
14mult(n);
15return 0;
16}