for(int i = 10;;) {
count += 1;
if(i>num){
break;
}else {
i *= 10;
}
}
System.out.println("他是個(gè)" + count + "位的數(shù)");
偷雞用了條件判斷沒用嵌套循環(huán)。
count += 1;
if(i>num){
break;
}else {
i *= 10;
}
}
System.out.println("他是個(gè)" + count + "位的數(shù)");
偷雞用了條件判斷沒用嵌套循環(huán)。
2024-05-16
if (i == week - 1) {
System.out.print("√");
};
System.out.println(contentList[i]);
System.out.print("√");
};
System.out.println(contentList[i]);
2024-02-28
public class HelloWorld{
public static void main(String[] args) {
String myAge = "我愛慕課網(wǎng)";
System.out.println(myAge);
String a ="idcbgp.cn";
System.out.println(a);
}
}
public static void main(String[] args) {
String myAge = "我愛慕課網(wǎng)";
System.out.println(myAge);
String a ="idcbgp.cn";
System.out.println(a);
}
}
2024-02-25