Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- int gaji,jam,lembur,gaji2;
- cout<<"\nMasukkan jam kerja anda : ";cin>>jam;
- if (jam>=48)
- {
- lembur= jam-48 ;
- gaji=((48*2000)+(lembur*3000));
- cout<<"\nJam kerja anda : 48 Jam";
- cout<<"\nJam lembur anda : "<<lembur<<" jam";
- cout<<"\nGaji anda adalah : Rp. "<<gaji;
- }
- else
- {
- gaji2=jam*2000 ;
- cout<<"\nJam kerja anda : "<<jam<<" jam";
- cout<<"\nJam lembur anda : 0 Jam";
- cout<<"\nGaji anda adalah : Rp. "<<gaji2;
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement