#include "iostream.h"
#include "conio.h"
#include "stdio.h"
main(){
float jp,a,b,c,d,bonus=0;
clrscr();
cout << "Bonus Sales \n-------------------------------- " ;
cout << "Masukkan jumlah pembelian : " ;
cin >> jp;
if (jp>=1000000){
a=1000000;
b=a*0.1;
c=jp-a;
d=c*0.15;
bonus=d+a;
}else if(jp>=500000){
bonus=jp*0.10;
}
cout << "Bonus : " << bonus;
}
#include "conio.h"
#include "stdio.h"
main(){
float jp,a,b,c,d,bonus=0;
clrscr();
cout << "Bonus Sales \n-------------------------------- " ;
cout << "Masukkan jumlah pembelian : " ;
cin >> jp;
if (jp>=1000000){
a=1000000;
b=a*0.1;
c=jp-a;
d=c*0.15;
bonus=d+a;
}else if(jp>=500000){
bonus=jp*0.10;
}
cout << "Bonus : " << bonus;
}