Advertisement
rotti321

Test5 BAC2021 SIII ex2

Sep 20th, 2021
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    int a[101][101],m,n,i,j;
  7.    cin>>m>>n;
  8.    for(i=1;i<=m;i++){
  9.        for(j=1;j<=n;j++){
  10.            a[i][j]=(i*j)%10;
  11.            cout<<a[i][j]<<" ";
  12.            
  13.        }
  14.        cout<< endl;
  15.    }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement