Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int M, N;
- float pajak, totalkeuntungan;
- double keuntunganM,keuntunganN;
- cout << "M : ";
- cin >> M ;
- cout << "N: ";
- cin >> N ;
- keuntunganM = M*235;
- keuntunganN = N*241;
- totalkeuntungan = keuntunganM+keuntunganN;
- pajak = totalkeuntungan*0.01;
- cout << "Total keuntungan bunga Anggrek : " << keuntunganN <<endl;
- cout << "Total keuntungan bunga Mawar : " << keuntunganM <<endl;
- cout << "Total keuntungan :" << totalkeuntungan <<endl;
- cout << "Pajak yang harus dibayar : " << pajak << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement