Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int n,m;
  5. int main()
  6. {cin>>n>>m;
  7. int c=n*m;
  8. for(int i=1;i<=n;i++)
  9. {
  10. for(int j=1;j<=m;j++)
  11. cout<<c<<' ',c--;
  12. cout<<endl;
  13. }
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement