第一題:
請撰寫一 Java 程式,用以輸出下列的九九乘法表。【25 分】
申論題作答 (共 3 筆)
依時間顯示最近 3 筆。
Jamin Chang (Edward)
申論題作答 #90812
82 分
82
總分
22分49秒 總時間
0 人解鎖
2026.06
作答大綱
用兩層for迴圈來寫
正文
public class MultiplcationTable{ public static void main(String[] args){...
阿文Arwen
申論題作答 #26414
66 分
66
總分
9分59秒 總時間
0 人解鎖
2026.04
作答大綱
雙迴圈處理
正文
for(int i = 1; i
阿文Arwen
申論題作答 #26205
70 分
70
總分
17分27秒 總時間
0 人解鎖
2026.04
作答大綱
用兩層 for 迴圈,外層 19 外層每跑1個單位數,都要進行完內層回圈地 19 數值...
正文
for(int i = 1; i
詳解 (共 4 筆)
robyhung
詳解 #6280317
public class Main{ ...
(共 465 字,隱藏中)
前往觀看
小書僮Roy
詳解 #6327338
public class Multipl...
(共 373 字,隱藏中)
前往觀看
蔡恩林
詳解 #6200716
publicclass test99...
(共 200 字,隱藏中)
前往觀看
hchungw
詳解 #6231687
public class MultiplicationTable {
public static void main(String[] args) {
// Loop through columns
for (int i = 1; i <= 9; i++) {
// Loop through rows
for (int j = 1; j <= 9; j++) {
// Print each product with formatted output
System.out.printf("%d★%d=%-2d ", j, i, i * j);
}
// Move to the next line after each column
System.out.println();
}
}
}
public static void main(String[] args) {
// Loop through columns
for (int i = 1; i <= 9; i++) {
// Loop through rows
for (int j = 1; j <= 9; j++) {
// Print each product with formatted output
System.out.printf("%d★%d=%-2d ", j, i, i * j);
}
// Move to the next line after each column
System.out.println();
}
}
}