using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication20
{
class FindNum {
public int FindMax(int _i, int _j) {
if (_i > _j)
{
return _i;
}
else {
return _j;
}
}
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入两个不同的整数!");
Console.WriteLine("请输入第一个整数,");
int i = int.Parse(Console.ReadLine());
Console.WriteLine("请输入第二整数,");
int j = int.Parse(Console.ReadLine());
int max;
FindNum f = new FindNum();
max = f.FindMax(i, j);
Console.WriteLine("最大值为:{0}",max);
Console.ReadKey();
}
}
}