更新时间2019-11-05 09:14:26
int i = 200, x = 1, cishu = 0;
while (i >= 200 && i <= 300)
{
i++;
while (x >=1 && x <= i - 1)
{
x++;
if (i % x == 0)
{
break;
}
}
if (i == x)
{
Console.WriteLine(i+"");
cishu++;
if(cishu%5==0)
{
Console.WriteLine("");
}
}
}
Console.ReadLine();
程序有两个错,改好的
上一篇:王者四周岁数据回顾活动在哪
下一篇:求c语言大神帮忙