小编Asg*_*ore的帖子

在期望的输出中找到模式

对某些人来说这可能是非常基本的,但我似乎无法绕过它.我的任务指示是:

只应改变一个地方.而不是打印

1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Run Code Online (Sandbox Code Playgroud)

打印:

99, 80, 63, 48, 35, 24, 15, 8, 3, 0
Run Code Online (Sandbox Code Playgroud)

码:

public class Lab9
{
    public static void main(String args[])
    {
        int counter;
        counter=1; // do not change this line
        while(counter<=10) // do not change this line
        {
            System.out.println(counter); // do change this line
            counter=counter+1; // do not change this line
        }
        System.exit(0);
    }
}
Run Code Online (Sandbox Code Playgroud)

java

0
推荐指数
1
解决办法
99
查看次数

标签 统计

java ×1