____________________________________________________
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
void a()
{
for (int a=1;a<=5;a++)
{
for (int s=8;s>=1;s--)
{cout<<" "; }
for (int a=1;a<=2;a++)
{cout<<"**** ";}
cout<<endl;}
for (int d=1;d<=2;d++)
{cout<<" ";
{for (int f=1;f<=16;f++)
{cout<<"*";}cout<<endl;
}
}
for (int g=1;g<=1;g++)
{cout<<" ";
{for (int f=1;f<=21;f++)
{cout<<"*";}cout<<endl; }
}
for (int z=1;z<=2;z++)
{cout<<" ";
{for (int f=1;f<=21;f++)
{cout<<"*";}cout<<endl; }
}
for (int h=1;h<=2;h++)
{cout<<" ";
{for (int f=1;f<=12;f++)
{cout<<"*";}
cout<<endl; }
}
for (int v=1;v<=1;v++)
{cout<<" ";
{for (int f=1;f<=6;f++)
{cout<<"*";}
cout<<endl; }
}
}
main()
{
char pil;
do{
char nama[25],umur[10],jur[10],kel;
{cout<<"Masukkan Nama : ";gets (nama);cout<<endl;
cout<<"Masukkan Umur : ";gets (umur);cout<<endl;
cout<<"Jenis Kelamin [L/P] : ";cin>>kel;cout<<endl;
cout<<"Masukkan Jurusan : ";cin>>jur;cout<<endl;
if (kel=='l'||kel=='L')
{cout<<endl<<">>>>>>>>>>>>>>>>>>";
cout<<" !!! YOU'RE BAD BOY ";
cout<<"<<<<<<<<<<<<<<<<<<<<"<<endl<<endl; }
else
{ cout<<endl<<">>>>>>>>>>>>>>>>>>";
cout<<" !!! YOU'RE BAD GIRL ";
cout<<"<<<<<<<<<<<<<<<<<<<<"<<endl<<endl; }
}
a();
getch();
cout<<endl<<endl<<"Apakah Anda Ingin Mengulang ??? [Y / T] :" ;
cin>>pil;
clrscr();
} while (pil=='y' || pil=='Y');
cout<<endl<<"=>=>=>=>=>=>=>=>";
cout<<"Terima Kasih";
cout<<"<=<=<=<=<=<=<=<=";
}
___________________________________________
Semoga Bermanfaat !!!
Karya cipta : RNP
No comments:
Post a Comment