#include<iostream.h>
#include<conio.h>
#include<cstring>
#include<constrea.h>
main()
{
int kode, sld, setor;
char tekan,y;
sld=300000;
a:
cout<<endl;
system("cls");
cout<<"~~~~~~~~~~ PROGRAM PERBANKAN ~~~~~~~~~~"<<endl;
cout<<endl;
cout<<endl;
cout<<"SALDO ANDA :Rp"<<sld;
cout<<endl;
cout<<"--------------------------------------"<<endl;
cout<<endl;
cout<<"-------------DAFTAR MENU--------------"<<endl;
cout<<" |-------------------------|"<<endl;
cout<<" | kode | MENU |"<<endl;
cout<<" |-------------------------|"<<endl;
cout<<" | 1. | PENYETORAN |"<<endl;
cout<<" | 2. | PENARIKAN |"<<endl;
cout<<" | 3. | EXIT |"<<endl;
cout<<" | | |"<<endl;
cout<<"======================================="<<endl;
cout<<endl;
cout<<"MASUKKAN KODE :"<<endl;
cin>>kode;
cout<<endl;
if(kode==1)
{
system("cls");
cout<<"--------- TAMBAH TABUNGAN --------"<<endl;
cout<<endl;
cout<<"MASUKKAN JUMLAH SETORAN ANDA = Rp.";
cin>>setor;
sld=sld+setor;
cout<<"SALDO =Rp.";cout<<sld<<endl;
cout<<endl;
cout<<"kembali menu awal Y/T= ";
cin>>tekan;
if(tekan='y')
{
goto a;
}
else
{
goto end;
}
}
if(kode==2)
{
system("cls");
cout<<"--------- AMBIL TABUNGAN ---------"<<endl;
cout<<endl;
cout<<"MASUKKAN JUMLAH PENARIKAN ANDA= Rp.";
cin>>setor;
sld=sld-setor;
cout<<"SALDO = Rp.";cout<<sld<<endl;
cout<<endl;
cout<<"kembali menu awal Y/T= ";
cin>>tekan;
if(tekan='y')
{
goto a;
}
else
{
goto end;
}
}
if(kode==3)
{
exit(1);
}
getch();
end:
}
#include<conio.h>
#include<cstring>
#include<constrea.h>
main()
{
int kode, sld, setor;
char tekan,y;
sld=300000;
a:
cout<<endl;
system("cls");
cout<<"~~~~~~~~~~ PROGRAM PERBANKAN ~~~~~~~~~~"<<endl;
cout<<endl;
cout<<endl;
cout<<"SALDO ANDA :Rp"<<sld;
cout<<endl;
cout<<"--------------------------------------"<<endl;
cout<<endl;
cout<<"-------------DAFTAR MENU--------------"<<endl;
cout<<" |-------------------------|"<<endl;
cout<<" | kode | MENU |"<<endl;
cout<<" |-------------------------|"<<endl;
cout<<" | 1. | PENYETORAN |"<<endl;
cout<<" | 2. | PENARIKAN |"<<endl;
cout<<" | 3. | EXIT |"<<endl;
cout<<" | | |"<<endl;
cout<<"======================================="<<endl;
cout<<endl;
cout<<"MASUKKAN KODE :"<<endl;
cin>>kode;
cout<<endl;
if(kode==1)
{
system("cls");
cout<<"--------- TAMBAH TABUNGAN --------"<<endl;
cout<<endl;
cout<<"MASUKKAN JUMLAH SETORAN ANDA = Rp.";
cin>>setor;
sld=sld+setor;
cout<<"SALDO =Rp.";cout<<sld<<endl;
cout<<endl;
cout<<"kembali menu awal Y/T= ";
cin>>tekan;
if(tekan='y')
{
goto a;
}
else
{
goto end;
}
}
if(kode==2)
{
system("cls");
cout<<"--------- AMBIL TABUNGAN ---------"<<endl;
cout<<endl;
cout<<"MASUKKAN JUMLAH PENARIKAN ANDA= Rp.";
cin>>setor;
sld=sld-setor;
cout<<"SALDO = Rp.";cout<<sld<<endl;
cout<<endl;
cout<<"kembali menu awal Y/T= ";
cin>>tekan;
if(tekan='y')
{
goto a;
}
else
{
goto end;
}
}
if(kode==3)
{
exit(1);
}
getch();
end:
}
Tidak ada komentar:
Posting Komentar