#include
#include
void main()
{
int tot_beli, tot_byr, disc=0;
char nama_kasir [30];
char nama_pembeli [30];
cout<<" TOKO HALAL MAKMUR JAYA\n"; cout<<"Dapatkan diskon 20% untuk setiap\n"; cout<<"total pembelian Rp. 50.000 keatas\n"; cout<<"---------------------------------\n"; cout<<"Nama Kasir : "; gets(nama_kasir); cout<<"Nama Pembeli : "; gets(nama_pembeli); cout<<"---------------------------------\n"; cout<<"Total Pembelian : Rp. "; cin>>tot_beli;
if (tot_beli>=50000)
disc=0.2*tot_beli;
cout<<"Potongan : Rp. "<
tot_byr=tot_beli-disc;
cout<<"Total Pembayaran : Rp. "<
}
0 comments:
Speak up your mind
Tell us what you're thinking... !