#include <iostream>
using namespace std;
int main()
{
int bayar,akhir,diskon,uang;
cout<<"Contoh Program c++ Diskon"<<" Kasir Serba Ajaib"<<endl;
cout<<"------------------------------------------------------"<<endl;
cout<<"Total pembayaran : ";
cin>>bayar;
if ((bayar>=100000) && (bayar<500000)){
diskon=bayar*0.10;
akhir=bayar-diskon;
cout<<endl<<"selamat anda mendapatkan diskon 10%"<<endl;