________________________________________________________
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
main()
{
float a,b,c,d,e,f,g,h,i,j,k,l,n,o;
float nomor;
int pil ;
ulang:
cout<<" SELAMAT DATANG\n";
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Masukkan Nomor Handphone Anda";
cout<<endl;
cout<<" ------------------------------\n";
cout<<" Nomor :";
cin>>nomor;
clrscr();
cout<<" Pilih Kartu Provider Anda";
cout<<endl;
cout<<" -------------------------------\n";
cout<<" 1. INDOSAT\n";
cout<<" 2. TELKOMSEL\n";
cout<<" 3. XL\n";
cout<<" Pilihan Anda : ";
cin>>pil;
clrscr();
switch (pil)
{
ulanga:
case 1:
cout<<" INDOSAT\n";
cout<<" ------------------\n";
cout<<" Daftar Harga :\n";
cout<<" ------------------\n";
cout<<" 1. 5000 Harganya 6000\n";
cout<<" 2. 10000 Harganya 11000\n";
cout<<" 3. 20000 Harganya 21000\n";
cout<<" 4. 50000 Harganya 51000\n";
cout<<" ------------------\n";
cout<<" Masukkan Pilihan Pulsa : ";
cin>>a;
clrscr();
{if (a==1)
{c=6000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<c<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};
}
else if (a==2)
{d=11000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<d<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==3)
{e=21000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<e<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==4)
{f=51000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<f<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else
{
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------";
cout<<endl;
cout<<endl;
cout<<" Maaf Pilihan Menu Anda Salah ";
cout<<endl;
cout<<endl;
cout<<" Apakah anda ingin kembali ke menu sebelumnya(1.Ya/2.Tidak)? ";
cout<<endl;
cout<<endl;
cout<<" Pilihan Anda ?? ";
cin>>o;
clrscr();
if (o==1)
{
goto ulanga;
}
else if (o==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
}
break;
case 2:
ulangab:
cout<<" TELKOMSEL\n";
cout<<" ------------------\n";
cout<<" Daftar Harga :\n";
cout<<" ------------------\n";
cout<<" 1. 5000 Harganya 6000\n";
cout<<" 2. 10000 Harganya 11000\n";
cout<<" 3. 20000 Harganya 21000\n";
cout<<" 4. 50000 Harganya 51000\n";
cout<<" ------------------\n";
cout<<" Masukkan Pilihan Pulsa : ";
cin>>a;
clrscr();
{if (a==1)
{c=6000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<c<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==2)
{d=11000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<d<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==3)
{e=21000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<e<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==4)
{f=51000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<f<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else
{
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------";
cout<<endl;
cout<<endl;
cout<<" Maaf Pilihan Menu Anda Salah ";
cout<<endl;
cout<<endl;
cout<<" Apakah anda ingin kembali ke menu sebelumnya(1.Ya/2.Tidak)? ";
cout<<endl;
cout<<endl;
cout<<" Pilihan Anda ?? ";
cin>>o;
clrscr();
if (o==1)
{
goto ulangab;
}
else if (o==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
}
break;
case 3:
ulangabc:
cout<<" XL\n";
cout<<" ------------------\n";
cout<<" Daftar Harga :\n";
cout<<" ------------------\n";
cout<<" 1. 5000 Harganya 6000\n";
cout<<" 2. 10000 Harganya 11000\n";
cout<<" 3. 20000 Harganya 21000\n";
cout<<" 4. 50000 Harganya 51000\n";
cout<<" ------------------\n";
cout<<" Masukkan Pilihan Pulsa : ";
cin>>a;
clrscr();
{if (a==1)
{c=6000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<c<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==2)
{d=11000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<d<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==3)
{e=21000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<e<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else if (a==4)
{f=51000;
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------\n";
cout<<endl;
cout<<" Anda harus membayar : "<<f<<endl;
cout<<endl;
cout<<" ------------------------------------\n";
cout<<endl;
cout<<endl;
cout<<" Apakah Anda Ingin Mengisi Pulsa Lagi ?\n";
cout<<" (1.Ya / 2.Tidak)\n";
cout<<" ------------------------------------\n";
cout<<" Pilihan Anda :";
cin>>n;
clrscr();
if (n==1)
{
goto ulang;
}
else if (n==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
};}
else
{
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------";
cout<<endl;
cout<<endl;
cout<<" Maaf Pilihan Menu Anda Salah ";
cout<<endl;
cout<<endl;
cout<<" Apakah anda ingin kembali ke menu sebelumnya(1.Ya/2.Tidak)? ";
cout<<endl;
cout<<endl;
cout<<" Pilihan Anda ?? ";
cin>>o;
clrscr();
if (o==1)
{
goto ulangabc;
}
else if (o==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
}
break;
default:
cout<<" PENGISISAN PULSA ONLINE\n";
cout<<" -------------------------------";
cout<<endl;
cout<<endl;
cout<<" Maaf Pilihan Menu Anda Salah ";
cout<<endl;
cout<<endl;
cout<<" Apakah anda ingin kembali ke menu awal(1.Ya/2.Tidak)? ";
cout<<endl;
cout<<endl;
cout<<" Pilihan Anda ?? ";
cin>>o;
clrscr();
if (o==1)
{
goto ulang;
}
else if (o==2)
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" Terimakasih Telah Berkunjung";
}
else
{
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<" ERROR!!";
}
break;
getch();
}
}
}
}
}
}
}
}
_________________________________________________________
Semoga Bermanfaat :)
No comments:
Post a Comment