#include
#include
#include
main()
{
char kd;
char ukr,merk[20];
long int hrg,byr,ppn,ttl,u_byr,u_kembali,byk;
clrscr();
cout<<"*** Toko Maju Mundur ***"<<endl;
cout<<"==============================================="<<endl;
cout<<"A. susu dancaw "<<endl;
cout<<" 1. ukuran kecil "<<endl;
cout<<" 2. ukuran sedang "<<endl;
cout<<" 3. ukuran besar "<<endl;
cout<<"B. susu bendera "<<endl;
cout<<" 1. ukuran kecil "<<endl;
cout<<" 2. ukuran sedang "<<endl;
cout<<" 3. ukuran besar "<<endl;
cout<<"C. susu SGM "<<endl;
cout<<" 1. ukuran kecil "<<endl;
cout<<" 2. ukuran sedang "<<endl;
cout<<" 3. ukuran besar "<<endl;
cout<>kd;
cout<>ukr;
cout<>byk; 
if(kd==’A’||kd==’a’)
{strcpy(merk,”Dancaw”);
if(ukr==’1′)hrg=15000;
else if(ukr==’2′)hrg=26000;
else hrg=45000;}
else if(kd==’B’||kd==’b’)
{strcpy(merk,”Benera”);
if(ukr==’1′)hrg=12000;
else if(ukr==’2′)hrg=22000;
else hrg=40000;}
else
{strcpy(merk,”SGM”);
if (ukr==’1′)hrg=20000;
else if(ukr==’2′)hrg=38000;
else hrg=70000;}

cout<<"Merk Susu :"<<merk<<endl;
cout<<"Harga :"<<hrg<<endl;
byr=hrg*byk;
cout<<"Pembayaran :"<<byr<<endl;
ppn=0.1*byr;
ttl=byr+ppn;
cout<<"ppn :"<<ppn<<endl;
cout<<"total bayar :"<<ttl<<endl;
cout<>u_byr;
u_kembali=u_byr-ttl;
cout<<"uang kembali :"<<u_kembali<<endl;
cout<<"terima kasih anda telah ke counter kami"<<endl;
getch();
}