算法错误 求助求助
package test1;
public class test2
{
public static void main(String args[])
{
int mul = 1;
int num = 999;
int count = 0;
for(int i=9;i>=1;i--)
{
for (int j=1;j<=i;j++)
{
mul=mul*10;
}
count=num/mul;
if (count!=0)
{
System.out.println(mul+1);
break;
}
}
}
}
这个代码提示有除0错误,求助!!!!