Console.WriteLine("请输入一个数a");
string a = Console.ReadLine();
int shu1 = Convert.ToInt32(a);
Console.WriteLine("请输入一个数b");
string b = Console.ReadLine();
int shu2 = Convert.ToInt32(b);
if (shu1 % shu2 == 0 || shu1 + shu2 > 100)
{
Console.WriteLine("输出的数为{0}", shu1);
}
else
{
Console.WriteLine("输出的数为{1}", shu2);
}
Console.ReadKey();
9
网友评论