题解 | #成绩输入输出#

成绩输入输出

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);
    }
}

全部评论

相关推荐

点赞 评论 收藏
分享
阿里淘天内蓷:虽然很想感谢你的分享,但是此刻的嫉妒和酸气已经涌上心头,所以我撤销一下对你的感谢吧,希望你能原谅我
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务