Quis Soal II (Kedua)

Posted on 2:05 AM, under

#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;
}

edit post

0 Reply to "Quis Soal II (Kedua)"

  • Post a Comment