题解 | #成绩输入输出#
成绩输入输出
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 score1 = sc.nextInt(); int score2 = sc.nextInt(); int score3 = sc.nextInt(); System.out.println("score1="+score1+","+"score2="+score2+","+"score3="+score3); } }