Advertisement
NdaX404

gajian

Mar 10th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int pokok, kesehatan, transportasi, bersih, pph, kotor;
  9.     cout<<" \n\n Gaji Pokok\t : ";cin>>pokok;
  10.     cout<<" Uang Kesehatan\t : ";cin>>kesehatan;
  11.     cout<<" transportasi\t : ";cin>>transportasi;
  12.    
  13.     kotor  = (pokok+kesehatan+transportasi);
  14.     pph    = (3.75/100)*kotor;
  15.     bersih = kotor-pph;
  16.     cout<<"\n\n Gaji Bersih\t : "<<bersih;
  17.         cout<<"\n";
  18.         system("pause");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement