已采纳回答 / 宝哥来也哦哦
输出语句括号里Console.Write(“”);他是输出双引号里的内容,如果是运算符,里面就会产生运算比如Console.Write("hello"+"world");这个语句中+运算符把这两个字符串合并到一起,输出helloworld
2016-05-05
最新回答 / 一筐
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