一直错,谁帮忙看下?
for(; count < 10; count++)
{
if(num > 0)
{
// if(num > 100 && num < 1000)
if(num > (count-1)* 10 && num < count* 10)
{
//System.out.print("它是个" +String.valueOf(count) + "位的数!");
System.out.println("它是个"+count+"位的数! ");
}
}
}
for(; count < 10; count++)
{
if(num > 0)
{
// if(num > 100 && num < 1000)
if(num > (count-1)* 10 && num < count* 10)
{
//System.out.print("它是个" +String.valueOf(count) + "位的数!");
System.out.println("它是个"+count+"位的数! ");
}
}
}
2019-04-01
举报