最新回答 / 一筐
VS输出应该是“没有7的整倍数”吧?没有“按任意键继续...”吧?你用了Console.ReadLine(); 意思是等待接受从键盘输入的数据,而没有让程序结束。。
2016-05-05
int x = 5;
int y = 6;
if (x >= y)
{
if (x >= 5)
{
Console.WriteLine("5");
}
}
else
if (y >= 6)
{
Console.WriteLine("6");
}
else
{
Console.WriteLine("7");
}
int y = 6;
if (x >= y)
{
if (x >= 5)
{
Console.WriteLine("5");
}
}
else
if (y >= 6)
{
Console.WriteLine("6");
}
else
{
Console.WriteLine("7");
}
2016-05-04