using System; using System.Collections.Generic; using - TopicsExpress



          

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Project1 { class Class1 { static void Main(string[] args) { int a1, a2; Console.Write("請輸入第一個整數(a1): "); a1 = int.Parse(Console.ReadLine()); Console.Write("請輸入第二個整數(a2): "); a2 = int.Parse(Console.ReadLine()); if (a1 == a2) { Console.WriteLine("{0} = {1}", a1, a2); } else { if (a1 > a2) { Console.WriteLine("{0} > {1}", a1, a2); } else { Console.WriteLine("{0} < {1}", a1, a2); } } Console.Read(); } } }
Posted on: Mon, 07 Oct 2013 11:27:31 +0000

Trending Topics



Recently Viewed Topics




© 2015