有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    你的t永远不会改变,事实上也不一定会改变,因为你可以在每次迭代中检查条件是否为真

    int z=10;
    int x=5;
    while (z < 21) {
        if((z % x) == 0) {
            s +=String.format("%8d", z)+this.mp.outstandingAfter(z, "%16.0f");
            s += "\n\n";
        }
        z++;
    }