#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int harga;
double diskon;
int hargabersih;
cout << "Masukkan harga barang : Rp.";
cin >> harga;
cout << endl;
cout << "Masukkan Dikon (%) : ";
cin >> diskon;
hargabersih = harga*diskon/100;
cout << endl;
cout << "-----------------------------------------------------------------------------";
cout << "\n" << "Harga barang : Rp." << harga << endl;
cout << "Besar Diskon : Rp." << hargabersih << endl;
cout << "---------------------------- -" << endl;
cout << "Harga Bersih : Rp." << harga - hargabersih;
char f;
cin >> f;
}
sorry kalo berantakan :D
Tidak ada komentar:
Posting Komentar