题解 | 成绩输入输出
成绩输入输出
https://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c
import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
System.out.println("score1="+ a +",score2="+ b +",score3=" + c);
}
}

查看26道真题和解析