fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int length = 20;
  5. int m = 3;
  6. int main() {
  7. int spacing;
  8. string head = " ╚⊙ ⊙╝ ";
  9. string body = "╚═(███)═╝";
  10. string tail = " ╚═(█)═╝ ";
  11. cout << head << endl;
  12. for (int i = 0; i < length; i++)
  13. {
  14. spacing = m - abs(i % (2*m) - m);
  15. cout << string(spacing , ' ') << body << endl;
  16. if (spacing ==0 || spacing == m)
  17. cout << string(spacing , ' ') << body << endl;
  18. }
  19. cout << string(spacing , ' ') << tail << endl;
  20. return 0;
  21. }
Success #stdin #stdout 0s 3416KB
stdin
Standard input is empty
stdout
 ╚⊙ ⊙╝  
╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝
   ╚═(███)═╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝
   ╚═(███)═╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(███)═╝
   ╚═(███)═╝
   ╚═(███)═╝
  ╚═(███)═╝
 ╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
 ╚═(███)═╝
  ╚═(█)═╝