📜  将 java 转换为 c++ - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.808000             🧑  作者: Mango

代码示例3
public class Main {
    public static void main(String[] args) {
   // write your code here
        int j = 1;
        for(int k = 5; k >= 1; k--){
            for (int d = 1; d < k; d++ ){
                System.out.print(j+ " ");
                j += 1;
            }
            System.out.println();
        }
    }
}