标签:
while (true) { int a,b,c,d; a = Convert.ToInt32(Console .ReadLine()); b = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Console.ReadLine()); d = Convert.ToInt32(Console.ReadLine()); if (a>b) { if (a>c) { if (a>d) { Console.WriteLine(a+"最大");
} else { Console.WriteLine(d + "最大"); } } } else if (b>c) { if (b>d) { Console.WriteLine(b + "最大"); } else { Console.WriteLine(d + "最大"); } } else if (c>d) { Console.WriteLine(c + "最大"); } else { Console.WriteLine(d + "最大"); } Console.ReadLine(); }
标签:
原文地址:http://www.cnblogs.com/Mr-xue/p/4378920.html