public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine("===============================================================================================================================");
Console.WriteLine(" ## ## ### ### #### ## ## ## ## #### ## ### ## ## #### ## ## ### ## ## ##");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## # ## ## ## ## ## # ## ## ## ## ## ## ##");
Console.WriteLine(" #### ## ## ## ## # ### # ## ## ## ## ## ## ## ## ## ## # ## # ## ");
Console.WriteLine(" ##### ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ");
Console.WriteLine(" ### ## ## ## ### ## ## ## ### ## ## ## ## ### ## ## ### ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ### ### ### ### ### ## ## ## ### ## #### ### ## ### ## #### ### ## ### ## ## ## ");
Console.WriteLine("=================================================================================================================================");
Console.WriteLine(" ### ## #### ## ## #### ## ## ### ### #### #### ## ## ## ### ## ### ## #### ### ### #### #### ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## # ### # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## # ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ### ## #### ## ## ### #### ## ## ### ### ### ### ### ### ## ## ### ## ### ## #### ## #### ### ### ### ### ### ### ");
Console.WriteLine(" Berkualitas ");
Console.WriteLine("===================================================================================================================================================");
Console.WriteLine(" Menu Pilihan");
Console.WriteLine("-----------------");
Console.WriteLine(" 1. Sony Xperia E1 White =Rp 1.299.000");
Console.WriteLine(" 2. Lenovo A526 Blue =Rp 1.399.000 ");
Console.WriteLine(" 3. Samsung Galaxy Mega 6.3 I9200 =Rp 4.950.000");
Console.WriteLine(" 4. Smartfen Andromax G2 Blue =Rp 899.000 ");
Console.WriteLine(" 5. Samsung Galaksi S4 I9500 =Rp 6.650.000");
sonyXperiaE1White=1299000,lenovoA526Blue=1399000,samsungGalaxyMega63I9200=4950000;
smartfenAndromaxG2Blue=899000,samsungGalaxyS4I9500=6650000;
uint totalHarga,tunai,kembalian = 0;
Console.Write("Masukan Angka Pilihan :");
pilihan = Convert.ToString(Console.ReadLine());
Console.WriteLine(" 1. Sony Xperia E1 White");
Console.WriteLine("-------------------------");
Console.WriteLine(" Masukan Quantity :");
quantity = Convert.ToByte(Console.ReadLine());
totalHarga = sonyXperiaE1White*quantity;
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" Total Harga : Rp{0}",totalHarga.ToString());
Console.Write(" Tunai : Rp");
tunai = Convert.ToUInt32(Console.ReadLine());
kembalian = tunai-totalHarga;
Console.WriteLine(" Kembalian : Rp{0}",kembalian.ToString());
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" 2. Lenovo A526 Blue ");
Console.WriteLine("----------------------");
Console.WriteLine(" Masukan Quantity :");
quantity = Convert.ToByte(Console.ReadLine());
totalHarga = lenovoA526Blue*quantity;
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" Total Harga : Rp{0}",totalHarga.ToString());
Console.Write(" Tunai : Rp");
tunai = Convert.ToUInt32(Console.ReadLine());
kembalian = tunai-totalHarga;
Console.WriteLine(" Kembalian : Rp{0}",kembalian.ToString());
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" 3. Samsung Galaxy Mega 6.3 I9200");
Console.WriteLine("-------------------------");
Console.WriteLine(" Masukan Quantity :");
quantity = Convert.ToByte(Console.ReadLine());
totalHarga = samsungGalaxyMega63I9200*quantity;
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" Total Harga : Rp{0}",totalHarga.ToString());
Console.Write(" Tunai : Rp");
tunai = Convert.ToUInt32(Console.ReadLine());
kembalian = tunai-totalHarga;
Console.WriteLine(" Kembalian : Rp{0}",kembalian.ToString());
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" 4. Smartfen Andromax G2 Blue");
Console.WriteLine("-------------------------");
Console.WriteLine(" Masukan Quantity :");
quantity = Convert.ToByte(Console.ReadLine());
totalHarga = smartfenAndromaxG2Blue*quantity;
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" Total Harga : Rp{0}",totalHarga.ToString());
Console.Write(" Tunai : Rp");
tunai = Convert.ToUInt32(Console.ReadLine());
kembalian = tunai-totalHarga;
Console.WriteLine(" Kembalian : Rp{0}",kembalian.ToString());
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" 5. Samsung Galaxy S4 I9500");
Console.WriteLine("-------------------------");
Console.WriteLine(" Masukan Quantity :");
quantity = Convert.ToByte(Console.ReadLine());
totalHarga = samsungGalaxyS4I9500*quantity;
Console.WriteLine("#=================#=============# ");
Console.WriteLine(" Total Harga : Rp{0}",totalHarga.ToString());
Console.Write(" Tunai : Rp");
tunai = Convert.ToUInt32(Console.ReadLine());
kembalian = tunai-totalHarga;
Console.WriteLine(" Kembalian : Rp{0}",kembalian.ToString());
Console.WriteLine("#=================#=============# ");
Console.Write("Apakah anda ingin mengulang transaksi? [y/t] :");
ulang=Convert.ToString(Console.ReadLine());
if (ulang=="y" || ulang=="Y")
Console.WriteLine("=================================================================");
Console.WriteLine("#### ## ### ### ### ## #### ## ## ## ## ### ## ## ## #### ### ## #### ## ### ### #### ## ### ## ### ### #### ## ## ### ## ### ## ### ## ### ## #### ## ### ## ## ### ## ## ## ## ## ### ## ## #### ");
Console.WriteLine("# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### #### #### #### ");
Console.WriteLine(" ## ## ## ## ## # ### # ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## # ## ## ## ## ## # ## # #### ## ## ## ## #### ## # # # # # # # # ");
Console.WriteLine(" ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ##### ## ## ### ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##### ## ## ## ## ##### ## ### # ### # ### # ### # ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ### ## ### ## ### ### ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ### ## ## ## ### ## ### ## ## ## ## ## ## ### ## ## ### ## ### ## ### ### ## ### # ### # ### # ### # ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### # # ### # # ### # # ### # # ");
Console.WriteLine("#### ### ### #### ## #### ## ## ### ## ## ### ### ## ## ## #### ### ## #### ### ### ### ### ### ## ### ## ### ### ### ### ### ## ## ### ## ## ## ### ### ## ### ## #### #### ## ### ## ### ## ## ## ### ## ## ### ## ## #### ### # # ### # # ### # # ### # # ");
Console.WriteLine(" ### # # ### # # ### # # ### # # ");
Console.WriteLine("## ### ## ## ## #### ## ## ### ### ## ## ### ## ### ### ### ## #### ## ### ## ### ## ### ## ## ### ## ## ## ## ## ## ## ### ### ## ## ### ## #### ## ## ### ## #### ### ## ## ### ## ### ## ### ## ## ## ## ### ### ## ## ### ## ## ### ## ");
Console.WriteLine("## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine("## ## ## ## # ### # ## # ### # ## # ### # ## ## ## ## ## ## ## ## ## ## # ## # ## ## ## ## ## ## ## ## ## # ### # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## # # ### # ## ## ## ## ## ## ## ## ## ## # ## # ");
Console.WriteLine("## ## ## ## ## # ## ## ## # ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ## ## # ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ### ## ## ## ## ");
Console.WriteLine("## ### ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ### ## ## ## ## ## ### ## ## ## ## ## ### ## ## ## ## ## ## ## ### ## ## ## ## ### ## ## ## ## ## ## ## ## ### ## ### ## ## ## ## ## ## ## ## ## ### ## ## ## ### ## ## ");
Console.WriteLine("## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine("## ### ### ## ## ## #### ## ## ### ### ## ## ### ## ### ### #### ## #### ## ### ### ## ### ## ### ## ### ## #### ## ## ## ### ## ## ## ## ## #### ## ### ## ### ## #### ### ## #### #### ### ## ## ## ## ### ### ## ### ## ## ## ## ## #### ## ### ## ### ## ### ## ### ## ");
Console.WriteLine("## ## ### ### ### ## ## ### ### ## ## ### #### ## ## ### ## ## ## #### ## ### ## ### ## #### #### #### ## ## ## ## #### #### ## ## ### ### ## ## ## ## ## ### ### ### ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ");
Console.WriteLine("# ### # ## # ## # ## ## ## ## ## ## ## ## ## ## ## # ### # ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## # ## # ## ## # ### # ## ## ## ## ");
Console.WriteLine("## # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ## ## ## ## ## ## ## ##### ## ## ## ## ## ## ## ## ## # ## ## ## ## ## ## ");
Console.WriteLine("## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ### ## ## ## ## ### ## ## ## ### ## ## ## ## ### ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine("## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine("## ## ### ### ### ## ## ## #### ## ## ## #### ## ### ### ## ## ## #### ## ### ## ## ### ## ### ### #### #### ### ## ## ## #### #### ## ## ### ## ## ## ## ## ### ### #### ## #### ");
Console.WriteLine("### ## ### ### ### ## ## ## ## ## ## ## ### ### #### #### ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ");
Console.WriteLine("### ## ### ### #### ## ## ## ## ## ## ### ### ### ### ### ### ");
Console.WriteLine("====================================================================");
Console.Write("Press any key to continue...");