Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4. using namespace std;
  5. int main(int argc, char** argv) {
  6. char t[10][10];
  7. int i,j;
  8. for(i=1; i<10; i++){
  9.  
  10. for(j=1; j<10; j++){
  11.  
  12. t[i][j]='O';}}
  13.  
  14. for(i=4; i<9; i++)t[i][1]='#';
  15.  
  16. for(i=6; i<10; i++)t[9][i]='#';
  17.  
  18. for(i=4; i<7; i++)t[5][i]='#';
  19. for(i=2; i<5; i++)t[i][8]='#';
  20.  
  21. for(i=3; i<5; i++)t[2][i]='#';
  22. for(i=8; i<10; i++)t[i][3]='#';
  23. for(i=0; i<2; i++)t[i][2]='#';
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. for(i=0; i<10; i++){
  36. for(j=0; j<10; j++){
  37.  
  38. cout<<t[i][j]<<" ";}cout<<endl;}
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement