#include
#include
#include
#include
void main ()
{
float a,b,c,d;
cout << "masukan harga barang : Rp.";cin>>a;
cout << "masukan diskon (%) : ";cin>>b;
cout<<"-------------------------------------\n";
c=b/100*a;
d=a-c;
cout<<"harga barang : Rp."<<
cout<<"besar diskon : Rp."<<
cout<<"----------------------------\n";
cout<<"harga bersih : Rp."<
getch();
}
Home »Unlabelled » Contoh Program untuk Diskon
Contoh Program untuk Diskon
Posted by
Adhit
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment