这个哪里错了
public class HelloWorld{ public static void main(String[] args){ int num = 999; int count = 0; int i=10; while((num%i)!=num) { i=i*10; count++; } count=count+1; System.out.println("它是个"+count+"位的数!"); } }这样不行?
public class HelloWorld{ public static void main(String[] args){ int num = 999; int count = 0; int i=10; while((num%i)!=num) { i=i*10; count++; } count=count+1; System.out.println("它是个"+count+"位的数!"); } }这样不行?
2016-07-23
举报