找分数那题

送分题我不会做。视频也看了,还是不会,总感觉有地方卡住了。
```java
import java.util.Scanner;
import java.io.PrintStream;

public class Main {
public static void main(String[] args) throws java.io.UnsupportedEncodingException {
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
Scanner in = new Scanner(System.in, "UTF-8");

int[]shuzi=new int[11];
int shuru=in.nextInt();
int x=0;
while(x<11){
x+=1;

}

}
}

3 条评论

  • @ 2019-05-05 22:40:35

    你可以试试下面这段代码,看能不能明白每行都在干什么。

    int[] shuzu = new int[10];
    
    shuzu[0] = 9;
    shuzu[1] = -1;
    System.out.println(shuzu[0]);
    System.out.println(shuzu[1]);
    
    shuzu[2] = in.nextInt();
    System.out.println(shuzu[2]);
    
  • @ 2019-05-05 20:26:31

    我写到这里就不知道怎么开始了,没思路

  • @ 2019-05-05 20:26:04
    
    import java.util.Scanner;
    import java.io.PrintStream;
    
    public class Main {
    public static void main(String[] args) throws java.io.UnsupportedEncodingException {
    PrintStream ps = new PrintStream(System.out, true, "UTF-8");
    Scanner in = new Scanner(System.in, "UTF-8");
    
    int[]shuzi=new int[11];
    int shuru=in.nextInt();
    int x=0;
    while(x<11){
    x+=1;
    
    }
    
    }
    }
    
    
    
    
  • 1