// // Copyright (C) 2014软件技术1班 // All rights reserved.(版权所有) //作者:A36 黄阿德 //完成日期:2014年12月3日 // using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main() { double one, two; Console.WriteLine("请输入一个数:"); one = double.Parse(Console.ReadLine()); Console.WriteLine("请输入另一个数:"); two = double.Parse(Console.ReadLine()); Console.WriteLine("The Max value is:{0}", Max(one, two)); Console.ReadKey(); Max(one, two); } static double Max(double one,double two) { if (one < two) return two; return one; } } }
时间: 2024-08-06 16:30:30