Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float gapok,kehadiran,subtotal,pajak,gatot,transport,insentif;
- int main () {
- printf("Masukkan Gaji Pokok= "); scanf("%f",&gapok);
- printf("Masukkan Kehadiran= "); scanf("%f",&kehadiran);
- insentif=kehadiran*175000;
- if(kehadiran>=20) transport=kehadiran*70000;
- else transport=kehadiran*25000;
- subtotal=gapok+insentif+transport;
- pajak=subtotal*0.025;
- if(gatot>=3500000);
- gatot=subtotal-pajak;
- 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