#代码
static void Main(string[] args)
{ 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();
网友评论