unixwz0r

ibmlogo.c

Oct 28th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.89 KB | None | 0 0
  1. /*
  2.  *
  3.  * IBM Logo Program -- A program that Display a IBM Logo
  4.  * Created by Gary T. Perreault
  5.  * Oct. 2015
  6.  *
  7.  *
  8. */
  9. #include <stdio.h>
  10. #define RED     "\x1b[31m" // Colours for the logo to make it pretty!
  11. #define GREEN   "\x1b[32m"
  12. #define BLUE    "\x1b[34m"
  13. #define RESET   "\x1b[0m"
  14.  
  15. int main()
  16. {
  17. /* IBM logo created by me, I use block characters */
  18. printf(GREEN"╔════════════════════════════════════════╗\n");
  19. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄   ▄▄▄▄▄       ▄▄▄▄▄"GREEN" ║\n");
  20. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄▄▄     ▄▄▄▄▄▄"GREEN" ║\n");
  21. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄   ▄▄▄   ▄▄▄▄▄▄   ▄▄▄▄▄▄"GREEN"  ║\n");
  22. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄"GREEN"  ║\n");
  23. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄▄▄▄▄▄    ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄"GREEN"  ║\n");
  24. printf(GREEN"║"BLUE"   ▄▄▄     ▄▄▄   ▄▄▄   ▄▄▄  ▄▄▄▄▄  ▄▄▄"GREEN"  ║\n");
  25. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄  ▄▄▄▄   ▄▄▄   ▄▄▄▄"GREEN" ║\n");
  26. printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄   ▄▄▄▄    ▄    ▄▄▄▄"GREEN" ║\n");
  27. printf(GREEN"║"GREEN"                                      "GREEN"  ║\n");
  28. printf(GREEN"║"RED"    FreeBSD lenovo ThinkCentre M58p     "GREEN"║\n");
  29. printf(GREEN"║"RED"       BSD UNIX Operating System        "GREEN"║\n");
  30. printf(GREEN"╚════════════════════════════════════════╝"RESET"\n");
  31. }
Advertisement
Add Comment
Please, Sign In to add comment