public static void Main()
Console.WriteLine("โปรแกรมเช็คการหารลงตัว กรุณากรอกตัวตั้ง และตามด้วยตัวหาร(จำนวนเต็ม)");
xx = int.Parse(Console.ReadLine());
yy = int.Parse(Console.ReadLine());
if(xx%yy==0){ Console.WriteLine("การหารนี้ลงตัว! ผลลัพธ์เท่ากับ {0}",xx/yy);}
else{ Console.WriteLine("การหารนี้ไม่ลงตัว ผลลัพธ์เท่ากับ {0} มีเศษเหลือเท่ากับ {1}",xx/yy,xx%yy);