Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- const int hRes = 9;
- const int scrSize = hRes*hRes;
- char scr[scrSize];
- for (int i=0; i < scrSize; scr[i++]='#');
- for (int i=0; i < scrSize; i++){cout<<" "<<scr[i]<<(!((i+1)%hRes) ? " \n" : " ");}
- cout << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement