Ad
Code
Diff
  • #include <stdio.h>
    
    int prnt_mltply(int m, int n) {
        int i = 1;
        while(i <= m) {
            int j = 1;
            while(j <= n) {
                printf("%d * %d = %d \n", i, j, i * j);
                j++;
            }
            i++;
            printf("\n");
        }
        return m * n;
    }
    • #include <stdio.h>
    • int prnt_mltply(int m, int n) {
    • int i = 1;
    • while(i <= m) {
    • int j = 1;
    • while(j <= n) {
    • printf("%d * %d = %d \n", i, j, i * j);
    • j++;
    • }
    • i++;
    • printf("\n");
    • }
    • return m - n;
    • return m * n;
    • }