Advertisement
Guest User

bolololo

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