static void Main(string[] args) { Karyawan karyawan1 = new Karyawan(19112893, "Zulhaditya", 500000); Karyawan karyawan2 = new Karyawan(19012271, "Delanno", 300000); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.showKaryawan(); karyawan2.showKaryawan(); Console.WriteLine("\n\n Alhamdulillah naik gaji nih 10%"); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.naikGaji(); karyawan2.naikGaji(); Console.ReadKey(); }
static void Main(string[] args) { Karyawan karyawan1 = new Karyawan(19766117, "Delanno", 300000); Karyawan karyawan2 = new Karyawan(19889911, "Mukti", 150000); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.showKaryawan(); karyawan2.showKaryawan(); Console.WriteLine("\n\n yeeee naik gaji nih "); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.naikGaji(); karyawan2.naikGaji(); Console.ReadKey(); }
static void Main(string[] args) { Karyawan karyawan1 = new Karyawan(19112896, "Reny", 800000); Karyawan karyawan2 = new Karyawan(19020117, "Hapiz", 700000); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.showKaryawan(); karyawan2.showKaryawan(); Console.WriteLine("\n\n hey baby naik gaji nih 10%"); Console.WriteLine("NIK \t Nama \t Gaji"); Console.WriteLine("--------------------------"); karyawan1.naikGaji(); karyawan2.naikGaji(); Console.ReadKey(); }