62,616
社区成员
发帖
与我相关
我的任务
分享
while(count < numberOfP)
{
if(isP(number))
{
count++;
if(count % 10 == 0)
{
System.out.printf("%-5s\n",number);//这里
}
else
System.out.printf("%-5s",number);//和这里的输出为什么用%s是正确的呢?格式标识符与类型不应严格匹配吗???
}
number ++;
}