Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. float gapok,kehadiran,subtotal,pajak,gatot,transport,insentif;
  4. int main () {
  5.  printf("Masukkan Gaji Pokok=  "); scanf("%f",&gapok);
  6.  printf("Masukkan Kehadiran=  "); scanf("%f",&kehadiran);
  7.  
  8. insentif=kehadiran*175000;
  9. if(kehadiran>=20) transport=kehadiran*70000;
  10. else transport=kehadiran*25000;
  11. subtotal=gapok+insentif+transport;
  12. pajak=subtotal*0.025;
  13. if(gatot>=3500000);
  14. gatot=subtotal-pajak;
  15. printf("Maka total gaji total anda sebesar Rp%.2f dengan pajak Rp%.2f ",gatot,pajak);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement