enum kurs{usd = 13500, yen = 189, baht = 1000}
public static void Main()
int total, total0, total1 ;
Console.WriteLine("PROGRAM MENGHITUNG MATA UANG");
Console.WriteLine("Konversi ke Rupiah");
Console.WriteLine("1 USD = Rp 13500");
Console.WriteLine("1 YEN = Rp 189");
Console.WriteLine("1 BAHT = Rp 1000");
Console.WriteLine("Masukan Jumlah Uang Anda : (Jumlah Lembar dalam Angka)");
lembar = Console.ReadLine();
numVal = Convert.ToInt32(lembar);
catch (FormatException e)
Console.WriteLine(e.Message);
total = numVal * (int)kurs.usd;
total0 = numVal * (int)kurs.yen;
total1 = numVal * (int)kurs.baht;
Console.WriteLine("1. " + numVal + " USD = " + total +" Rupiah");
Console.WriteLine("2. " + numVal + " YEN = " + total0 + " Rupiah");
Console.WriteLine("3. " + numVal + " BAHT = "+ total1 + " Rupiah");