eolymp
bolt
Try our new interface for solving problems
Problems

Multiplication table

published at 9/2/22, 5:37:48 pm

Xanlar0 because you wrote wrong

published at 9/2/22, 10:20:07 pm

Emil_Aliyev, if you can help, pls help

published at 1/23/23, 11:00:12 am

Brat ikivizde azerbaycanli neye ingilisce danissiz 🗿🗿

published at 2/21/24, 6:14:43 pm

include <bits/stdc++.h>

using namespace std;

void solve(){

long long n;
cin>>n;
for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
        if(j*i % 10 == j*i)
        cout<<' '<<j*i<<' ';
        else
        cout<<i*j<<' ';
    }
    cout<<'\n';
}

}

int main(){

ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
//int t; cin>>t; while(t--)
solve();

}