Contoh Program untuk Diskon

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

0 comments:

Post a Comment