using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
//要求用户输入两个数a、b,如果a被b整除或者a加b大于100,则输出a的值,否则输出b的值
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);
if ((b % a == 0) || (a + b > 100))
{
Console.WriteLine(a);
}
else
{
Console.WriteLine(b);
}
Console.ReadKey();
}
}
}