CONTOH TUGAS C++ KASIR DENGAN DISKON DAN BONUS
contoh hasil program kasir
#include <iostream>
#include <conio.h>
#include <stdio.h>
using namespace std;
int main()
{
int harga,code;
int jumlahb,dis;
char bonus[30];
cout << "Masukkan Harga : ";cin >>harga;
cout << "Jumlah Belinya : ";cin >>jumlahb;
cout << "\n\n================================================================================" << endl;
if (jumlahb>=15){
dis=harga*5/100;
cout <<"Diskonnya : "<<dis<< endl;
cout <<"Bonusnya : Payung"<< endl;
}
else{
dis=0;
cout <<"Diskonnya : "<<dis<< endl;
cout <<"Bonusnya : Tidak Dapat"<< endl;}
getch ();
}
#include <conio.h>
#include <stdio.h>
using namespace std;
int main()
{
int harga,code;
int jumlahb,dis;
char bonus[30];
cout << "Masukkan Harga : ";cin >>harga;
cout << "Jumlah Belinya : ";cin >>jumlahb;
cout << "\n\n================================================================================" << endl;
if (jumlahb>=15){
dis=harga*5/100;
cout <<"Diskonnya : "<<dis<< endl;
cout <<"Bonusnya : Payung"<< endl;
}
else{
dis=0;
cout <<"Diskonnya : "<<dis<< endl;
cout <<"Bonusnya : Tidak Dapat"<< endl;}
getch ();
}
SEMOGA BERMANFAAT
Wah boleh juga bonus payung
BalasHapusHow to make money from betting in baseball: A guide for all you need
BalasHapusThe biggest misconception when 인카지노 it comes to betting in baseball is that you want to bet 메리트 카지노 주소 on the team you think will win. The bookies want หารายได้เสริม you to win on