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