SHARE
TWEET

Untitled

a guest Sep 17th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   #include <iostream.h>
  2.   #include <stdio.h>
  3.   #include <conio.h>
  4.  
  5.   int main()
  6.  {
  7.   int gaji,jam,lembur,gaji2;
  8.  
  9.   cout<<"\nMasukkan jam kerja anda : ";cin>>jam;
  10.  
  11.    if (jam>=48)
  12.   {
  13.    lembur= jam-48   ;
  14.    gaji=((48*2000)+(lembur*3000));
  15.    cout<<"\nJam kerja anda : 48 Jam";
  16.    cout<<"\nJam lembur anda : "<<lembur<<" jam";
  17.    cout<<"\nGaji anda adalah : Rp. "<<gaji;
  18.    }
  19.    else  
  20.   {
  21.    gaji2=jam*2000   ;
  22.    cout<<"\nJam kerja anda : "<<jam<<" jam";
  23.    cout<<"\nJam lembur anda : 0 Jam";
  24.    cout<<"\nGaji anda adalah : Rp. "<<gaji2;
  25.    }
  26.  
  27.    getch();
  28.  
  29.    }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top