申論題內容
五、寫出下面 Java 程式的執行結果。(執行結果共有五列輸出,請標明每列輸出的列號
與內容)(20 分)
import java.io.*;
public class Main {
public static void main(String [] args) {
int x = 5;
for(int i = 0; i< x; i++){
for(int j = i; j < x; j++){
System.out.print(j);
}
System.out.println();
}
}
}