Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int n, m, conta;
- bool esPrimer=true;
- while(cin>>n>>m){
- conta=9;
- if(esPrimer==false) cout<<endl;
- else esPrimer=false;
- for(int i=0;i<n;++i){
- for(int j=0;j<m;++j){
- cout<<conta;
- --conta;
- if(conta==-1) conta=9;
- }
- cout<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement