Пример #1
0
        static void Main(string[] args)
        {
            Karyawan karyawan1 = new Karyawan("1.", "190302123", "wibu", 3000000);
            Karyawan karyawan2 = new Karyawan("2.", "190302124", "meimei", 2000000);

            Console.WriteLine("No NIK/Nama               Gaji Bulanan");
            Console.WriteLine("--------------------------------------");
            karyawan1.DataKaryawan();
            karyawan2.DataKaryawan();
            Console.WriteLine();
            Console.WriteLine(" kenaikan gaji 10 %");
            Console.WriteLine();
            karyawan1.NaikGaji();
            karyawan2.NaikGaji();

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Karyawan karyawan1 = new Karyawan("1.", "19112648", "Budi", 3000000);
            Karyawan karyawan2 = new Karyawan("2.", "19112644", "setiawan", 2000000);

            Console.WriteLine("No NIK/Nama               Gaji Bulanan");
            Console.WriteLine("--------------------------------------");
            karyawan1.DataKaryawan();
            karyawan2.DataKaryawan();
            Console.WriteLine();
            Console.WriteLine("Asyiiiiik kenaikan gaji 10 %");
            Console.WriteLine();
            karyawan1.NaikGaji();
            karyawan2.NaikGaji();

            Console.ReadKey();
        }