/*感觉java里次方运算好麻烦。。。*/
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;count<=10;count++)
{
if( num - Math.pow(10,count) > 0 )
{
continue;
}else
System.out.println("它是个"+count+"位的数"); ;
break;
}
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;count<=10;count++)
{
if( num - Math.pow(10,count) > 0 )
{
continue;
}else
System.out.println("它是个"+count+"位的数"); ;
break;
}
}
}
public class HelloWorld{
public static void main(String[] args) {
//System.out.println("Java");
System.out.println("imooc");
/*System.out.println("Oracle");
System.out.println("MySQL");*/
}
}
public static void main(String[] args) {
//System.out.println("Java");
System.out.println("imooc");
/*System.out.println("Oracle");
System.out.println("MySQL");*/
}
}
2015-08-21