1 solutions

  • 0
    @ 2025-11-27 11:55:04

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int n, m;
    int main() {
        scanf("%d%d", &n, &m);
        assert(1 <= n && n <= 50 && 1 <= m && m <= 50);
        for (int i = 1; i <= n; i++)
            for (int j = 1; j <= m; j++)
                printf("%d%c", i * j, " \n"[j == m]);
        return 0;
    }
    
    • 1

    Information

    ID
    28
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By