#include<stdio.h>
#include<conio.h>
#include<iostream.h>
main()
{
char kode[10];
float harga, jumlah, bayar, total, discount;
clrscr();
cout<<"\n kode:";gets(kode);
cout<<"\n harga:";cin>>harga;
cout<<"\n jumlah:";cin>>jumlah;
bayar=harga * jumlah;
if(bayar>=100000)
discount = 0.1 * bayar;
else
discount = 0;
/*menghitung total*/
cout<<"======================"<<endl;
cout<<"Diskon = Rp. "<<discount<<endl;
total = bayar - discount;
cout<<"Cetak Total Bayar = Rp. "<<total;
cout<<"\n\n\n===terimakasih==="<<endl;
getch();
}