Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- using namespace std;
- int main(int argc, char** argv) {
- char t[10][10];
- int i,j;
- for(i=1; i<10; i++){
- for(j=1; j<10; j++){
- t[i][j]='O';}}
- for(i=4; i<9; i++)t[i][1]='#';
- for(i=6; i<10; i++)t[9][i]='#';
- for(i=4; i<7; i++)t[5][i]='#';
- for(i=2; i<5; i++)t[i][8]='#';
- for(i=3; i<5; i++)t[2][i]='#';
- for(i=8; i<10; i++)t[i][3]='#';
- for(i=0; i<2; i++)t[i][2]='#';
- for(i=0; i<10; i++){
- for(j=0; j<10; j++){
- cout<<t[i][j]<<" ";}cout<<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement