Answers for "multiplication table function"

C
0

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;
}
Posted by: Guest on July-17-2021

Code answers related to "multiplication table function"

Code answers related to "C"

Browse Popular Code Answers by Language