关于for的写法 出现问题
int num = 999; int count = 0; int i = 0; for(num = 999;num>1;count++){ num = num/10; } System.out.println("它是" + count +"位数!"); 为啥for(num;num>1;count++)这样写,显示错误呢?
int num = 999; int count = 0; int i = 0; for(num = 999;num>1;count++){ num = num/10; } System.out.println("它是" + count +"位数!"); 为啥for(num;num>1;count++)这样写,显示错误呢?
2016-01-07
举报