fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char Christmastree[30][30] = { " ☆",
  9. "a/~~\a",
  10. "a/****\a",
  11. "a/~J~~ ⃝\a",
  12. "a/********\a",
  13. "a/~~ ⃝~~J~~~\a",
  14. "a/*******J****\a",
  15. "a/~J~~~~~~~ ⃝~~~\a",
  16. "a/*****J**********\a",
  17. "a/~ ⃝~~~~~~ ⃝~~J~~~\a",
  18. "| |",
  19. "| |",
  20. "| |" };
  21.  
  22.  
  23. string name;
  24. cout << "What's your name?\n";
  25. getline(cin, name);
  26.  
  27. for (unsigned i = 0; i < 30; ++i)
  28. std::cout << Christmastree[i] << '\n' ;
  29.  
  30. cout << "\nMerry Christmas!" << name << "!\n" << endl;
  31. }
Success #stdin #stdout 0s 3420KB
stdin
Yoda
stdout
What's your name?
   ☆
a/~~
a/****
a/~J~~ ⃝
a/********
a/~~ ⃝~~J~~~
a/*******J****
a/~J~~~~~~~ ⃝~~~
a/*****J**********
a/~ ⃝~~~~~~ ⃝~~J~~~
|    |
|    |
|    |


















Merry Christmas!Yoda!