Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
557 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int mas[10][10];
    for (int i = 0; i < 10; i++)
    {
        for (int j = 0; j < 10; j++)
        {
            mas[i][j] = (i + 1) * (j + 1);
            if ((i + 1) * (j + 1) < 10)
                cout << "   ";
            if ((i + 1) * (j + 1) < 100 && (i + 1) * (j + 1) >= 10)
                cout << "  ";
            if ((i + 1) * (j + 1) == 100)
                cout << " ";
            cout << mas[i][j];
        }
        cout << endl << endl;
    }
    return 0;
}
Leave a Comment