PROGRAM
IF
ü IF4
//CODING
PROGRAM
#include
#include
#include
main()
{
float
total_beli, diskon, total_bayar;
clrscr();
cout<<"===---------------**---------------===
\n";
cout<<" PROGRAM DISKON BELANJA ";
cout<<"\n===---------------**---------------===
\n\n";
cout<<"Total
Pembelian = Rp. ";cin>>total_beli;
cout<
if
(total_beli>=100000)
diskon
= 0.1 * total_beli;
else
diskon
= 0;
cout<<"======================"<
cout<<"Diskon
= Rp. "<
total_bayar=total_beli-diskon;
cout<<"Total
Bayar = Rp. "<
getch();
}
//OUTPUT PROGRAM
0 komentar:
Posting Komentar