3217142
2016-01-18 16:03
namespace Test { class Program { static void Main(string[] args) { int y = 5; while (y=5;y>=1;y--)//请输入 { Console.Write(y+" "); Console.ReadLine()//请输入 } } } } 哪错了??????
namespace Test
{
class Program
{
static void Main(string[] args)
{
int y = 5;
while (y >= 1)//请输入
{
Console.Write(y+" ");
y--; //请输入
}
}
}
}你的while循环写错了,你写的那个循环条件是for循环的
C#开发轻松入门
256722 学习 · 1528 问题
相似问题