fork download
  1. #include <stdio.h>
  2.  
  3. // ANSI color escape codes
  4. #define ANSI_COLOR_RED "\x1b[31m"
  5. #define ANSI_COLOR_GREEN "\x1b[32m"
  6. #define ANSI_COLOR_YELLOW "\x1b[33m"
  7. #define ANSI_COLOR_BLUE "\x1b[34m"
  8. #define ANSI_COLOR_MAGENTA "\x1b[35m"
  9. #define ANSI_COLOR_CYAN "\x1b[36m"
  10. #define ANSI_COLOR_RESET "\x1b[0m"
  11.  
  12. void welcome_heading() {
  13. printf("\n" ANSI_COLOR_CYAN " :::::::::::::::::::::::::::::::::::::");
  14. printf("\n :: ::");
  15. printf("\n :: @@@@@@@@@@@@@@@@@@@@@@@@@ ::");
  16. printf("\n :: @ @ ::");
  17. printf("\n :: @ WELCOME TO @ ::");
  18. printf("\n :: @ @ ::");
  19. printf("\n :: @ MATH-BEE CHAMPIONSHIP @ ::");
  20. printf("\n :: @ @ ::");
  21. printf("\n :: @@@@@@@@@@@@@@@@@@@@@@@ ::");
  22. printf("\n :: ::");
  23. printf("\n :::::::::::::::::::::::::::::::::::::\n\n" ANSI_COLOR_RESET);
  24. }
  25.  
  26. int main() {
  27. welcome_heading();
  28. printf("Press any key to continue...");
  29. getchar(); // Wait for any key press
  30. return 0;
  31. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
                       :::::::::::::::::::::::::::::::::::::
                       ::                                 ::
                       ::    @@@@@@@@@@@@@@@@@@@@@@@@@     ::
                       ::    @                       @     ::
                       ::    @     WELCOME TO        @     ::
                       ::    @                       @     ::
                       ::    @ MATH-BEE CHAMPIONSHIP @     ::
                       ::    @                       @     ::
                       ::     @@@@@@@@@@@@@@@@@@@@@@@     ::
                       ::                                 ::
                       :::::::::::::::::::::::::::::::::::::

Press any key to continue...