C Program that Display a IBM Logo

How to write a C program that Display a IBM Logo in C Programming Language ?

This IBM Logo Program -- A C Program that Display a IBM Logo.

Solution:

  1. /*IBM Logo Program -- A program that Display a IBM Logo*/
  2. #include <stdio.h>
  3. #define RED     "\x1b[31m" // Colours for the logo to make it pretty!
  4. #define GREEN   "\x1b[32m"
  5. #define BLUE    "\x1b[34m"
  6. #define RESET   "\x1b[0m"
  7. int main()
  8. {
  9. /* IBM logo created by me, I use block characters */
  10. printf(GREEN"╔════════════════════════════════════════╗\n");
  11. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄   ▄▄▄▄▄       ▄▄▄▄▄"GREEN" ║\n");
  12. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄     ▄▄▄▄▄▄"GREEN" ║\n");
  13. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄   ▄▄▄   ▄▄▄▄▄▄   ▄▄▄▄▄▄"GREEN"  ║\n");
  14. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄"GREEN"  ║\n");
  15. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄▄▄▄▄▄    ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄"GREEN"  ║\n");
  16. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄   ▄▄▄   ▄▄▄  ▄▄▄▄▄  ▄▄▄"GREEN"  ║\n");
  17. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄   ▄▄▄   ▄▄▄▄"GREEN" ║\n");
  18. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄   ▄▄▄▄    ▄    ▄▄▄▄"GREEN" ║\n");
  19. printf(GREEN"║"GREEN"                                      "GREEN"  ║\n");
  20. printf(GREEN"║"RED"    FreeBSD lenovo ThinkCentre M58p     "GREEN"║\n");
  21. printf(GREEN"║"RED"       BSD UNIX Operating System        "GREEN"║\n");
  22. printf(GREEN"╚════════════════════════════════════════╝"RESET"\n");
  23. }


Learn More :