#编码
Console.WriteLine("输入a");
string str_a = Console.ReadLine(); //输入
int a = Convert.ToInt32(str_a); //类型转换
Console.WriteLine("输入b");
string str_b = Console.ReadLine();
int b = Convert.ToInt32(str_b);
bool c = b % a == 0 || a + b > 100; //判断
if (c)
{
Console.WriteLine(a);
}
else
{
Console.WriteLine(b);
}
Console.ReadKey();
网友评论