62,623
社区成员
发帖
与我相关
我的任务
分享 String output = "";
int count = 1;
while( count <= 10 ) { // loop 10 times
if ( count != 5 ) // if count is 5,
{
output += count + " ";
count++ ;
}
else
{
count++;
}
}
System.out.println(output);