Print the multiplication table of a number

PHOTO EMBED

Tue Jun 07 2022 15:56:52 GMT+0000 (Coordinated Universal Time)

Saved by @KanishqJ8

// int main(){
//     int a,b;
//     b=1;
//     printf("Enter the number a\n");
//     scanf("%d",&a);
//     printf("a x b = %d \n",a*b);
    
    
//     return 0;

// }
 
 
 int main() { 
     int n, i; 
     printf("Enter an integer: \n"); 
     scanf("%d", &n);
     for (i = 1; i <= 10; ++i) {
         printf("%d x %d = %d \n", n, i, n * i);
         } 
    return 0; 
 }
content_copyCOPY