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:
- /*IBM Logo Program -- A program that Display a IBM Logo*/
- #include <stdio.h>
- #define RED "\x1b[31m" // Colours for the logo to make it pretty!
- #define GREEN "\x1b[32m"
- #define BLUE "\x1b[34m"
- #define RESET "\x1b[0m"
- int main()
- {
- /* IBM logo created by me, I use block characters */
- printf(GREEN"╔════════════════════════════════════════╗\n");
- printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄▄ ▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄ ▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"BLUE" ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄ ▄▄▄▄ ▄ ▄▄▄▄"GREEN" ║\n");
- printf(GREEN"║"GREEN" "GREEN" ║\n");
- printf(GREEN"║"RED" FreeBSD lenovo ThinkCentre M58p "GREEN"║\n");
- printf(GREEN"║"RED" BSD UNIX Operating System "GREEN"║\n");
- printf(GREEN"╚════════════════════════════════════════╝"RESET"\n");
- }