请用visual studio2005帮忙编写一个C#程序,还要运行结果的代码,太谢谢了!!

2024-12-16 01:55:50
推荐回答(1个)
回答1:

string inp;
int i = 0;
int max=0;
do
{
inp = Console.ReadLine();
if (inp != "end" && inp != "END")
{
int.TryParse(inp, out i);

max = i > max ? i : max;
}
else
{
Console.WriteLine(max.ToString ());
Console.ReadLine();

}
} while (inp != "end" || inp != "END");