Enter Your Name and See Magic Dev C++

Berikut adalah kode program yang dapat memberikan keluaran Enter Your Name and See Magic, kode bisa digunakan pada aplikasi Dev C++ ataupun aplikasi program bahasa C lainnya. Bagi anda yang belum mempunyai Dev C++, bisa di download di Download Dev C++, lalu silakan di install.

#include<iostream>
using namespace std;
int main(){
char put[100];
char lagi;
do
{
double ip;
cout << "====================================" << endl;
cout << "===Enter your name and see magic ===" << endl;
cout << "====================================" << endl;
cin.getline(put,100);
cout<<put;
cout<<"\n______________________________________"<<endl<<endl;


for(int b=0;put[b]!='\0';b++){

switch(put[b]){

case 'a':
case 'A':
cout<<"..######..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n"<<endl;
break;

case 'b':
case 'B':
cout<<"..######..\n..#....#..\n..#####...\n..#....#..\n..######..\n\n"<<endl;
break;

case 'c':
case 'C':
cout<<"..######..\n..#.......\n..#.......\n..#.......\n..######..\n\n"<<endl;
break;

case 'd':
case 'D':
cout<<"..#####...\n..#....#..\n..#....#..\n..#....#..\n..#####...\n\n"<<endl;
break;

case 'e':
case 'E':
cout<<"..######..\n..#.......\n..#####...\n..#.......\n..######..\n\n"<<endl;
break;

case 'f':
case 'F':
cout<<"..######..\n..#.......\n..#####...\n..#.......\n..#.......\n\n"<<endl;
break;

case 'g':
case 'G':
cout<<"..######..\n..#.......\n..#####...\n..#....#..\n..#####...\n\n"<<endl;
break;


case 'h':
case 'H':
cout<<"..#....#..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n"<<endl;
break;

case 'i':
case 'I':
cout<<"..######..\n....##....\n....##....\n....##....\n..######..\n\n"<<endl;
break;

case 'j':
case 'J':
cout<<"..######..\n....##....\n....##....\n..#.##....\n..####....\n\n"<<endl;
break;

case 'k':
case 'K':
cout<<"..#...#...\n..#..#....\n..##......\n..#..#....\n..#...#...\n\n"<<endl;
break;

case 'l':
case 'L':
cout<<"..#.......\n..#.......\n..#.......\n..#.......\n..######..\n\n"<<endl;
break;

case 'm':
case 'M':
cout<<"..#....#..\n..##..##..\n..#.##.#..\n..#....#..\n..#....#..\n\n"<<endl;
break;

case 'n':
case 'N':
cout<<"..#....#..\n..##...#..\n..#.#..#..\n..#..#.#..\n..#...##..\n\n"<<endl;
break;

case 'o':
case 'O':
cout<<"..######..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n"<<endl;
break;

case 'p':
case 'P':
cout<<"..######..\n..#....#..\n..######..\n..#.......\n..#.......\n\n"<<endl;
break;

case 'q':
case 'Q':
cout<<"..######..\n..#....#..\n..#.#..#..\n..#..#.#..\n..######..\n\n"<<endl;
break;

case 'r':
case 'R':
cout<<"..######..\n..#....#..\n..#.##...\n..#...#...\n..#....#..\n\n"<<endl;
break;

case 's':
case 'S':
cout<<"..######..\n..#.......\n..######..\n.......#..\n..######..\n\n"<<endl;
break;

case 't':
case 'T':
cout<<"..######..\n....##....\n....##....\n....##....\n....##....\n\n"<<endl;
break;

case 'u':
case 'U':
cout<<"..#....#..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n"<<endl;
break;

case 'v':
case 'V':
cout<<"..#....#..\n..#....#..\n..#....#..\n...#..#...\n....##....\n\n"<<endl;
break;


case 'w':
case 'W':
cout<<"..#....#..\n..#....#..\n..#.##.#..\n..##..##..\n..#....#..\n\n"<<endl;
break;

case 'x':
case 'X':
cout<<"..#....#..\n...#..#...\n....##....\n...#..#...\n..#....#..\n\n"<<endl;
break;

case 'y':
case 'Y':
cout<<"..#....#..\n...#..#...\n....##....\n....##....\n....##....\n\n"<<endl;
break;

case 'z':
case 'Z':
cout<<"..######..\n......#...\n.....#....\n....#.....\n..######..\n\n"<<endl;
break;

case ' ':
cout<<"..........\n..........\n..........\n..........\n\n"<<endl;
break;

case '.':
cout<<"----..----\n\n"<<endl;
break;
}
}
cout<<"______________________________________"<<endl<<endl;
cout<<"If you like it!!! Please hit one like."<<endl;
cout<<"______________________________________"<<endl<<endl;


cout<<"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"<<endl;
cout<<"\n\nReply [Y/T] : ";cin>>lagi;
}
while(lagi == 'y' || lagi == 'Y');

cout <<"|==========================|"<<endl;
cout <<"| TEKAN ENTER UNTUK KELUAR!|"<<endl;
cout <<"| creative:Faisal Haibib |"<<endl;
cout <<"|==========================|";
return 0;
}

Dengan Hasil running :

 

Rich Snippets
Published
Article
Enter Your Name and See Magic Dev C++
Ratings
51star1star1star1star1star
Faisal Habib

Kata Bijak? Google banyak!

You may also like...

Leave a Reply