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

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

代码示例2
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();
        }
    }
}