Untitled

 avatar
unknown
plain_text
9 months ago
2.8 kB
12
Indexable
#include <iostream>
using namespace std;

int main() {
        // Coduri ANSI pentru culori
            string reset = "\033[0m";
                string yellow = "\033[33m";
                    string green = "\033[32m";
                        string red = "\033[31m";
                            string blue = "\033[34m";
                                string white = "\033[37m";
                                
                                    // Bradul de Crăciun
                                        cout << yellow << "        *\n";
                                            cout << green  << "       ***\n";
                                                cout << blue   << "      *****\n";
                                                    cout << red    << "     *******\n";
                                                        cout << green  << "    *********\n";
                                                            cout << white  << "   ***********\n";
                                                                cout << yellow << "       |||\n" << reset << endl;
                                                                
                                                                    // Textul (versurile)
                                                                        cout << green;
                                                                            cout << "A face on a lover\n";
                                                                                cout << "With a fire in his heart\n";
                                                                                    cout << "A man undercover\n";
                                                                                        cout << "But you tore me apart\n";
                                                                                            cout << "Oh oh\n";
                                                                                                cout << "Oh oh\n";
                                                                                                    cout << "Now I've found a real love\n";
                                                                                                        cout << "You'll never fool me again\n";
                                                                                                            cout << reset;
                                                                                                            
                                                                                                                cout << endl;
                                                                                                                    return 0;
}
]]]]]]
}
Editor is loading...
Leave a Comment