Skip to main content

Multiplication using for loop

 #include <stdio.h>

int main() {

  int a, b;

 printf("Enter the number you want multiplication of :-\n");

 scanf("%d",&a);

 for(b=1;b<=10;b++){

    printf("%d*%d = %d\n",a,b,a*b);

 }

  return 0;

}

Comments