Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- unsigned short m,n;
- cin>>m>>n;
- unsigned matrice[20][20];
- unsigned impar = 1;
- for(unsigned short l = m-1;l>=0;--l)
- for(unsigned short c = n-1;c>=0;--c)
- {
- while(impar%3==0)impar+=2;
- matrice[l][c] = impar;
- impar+=2;
- }
- for(unsigned short l = 0;l<m;++l)
- {
- for(unsigned short c = 0;c<n;++c)cout<<matrice[l][c]<<' ';
- cout<<'\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement