题解 | #成绩输入输出#

成绩输入输出

https://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
       Scanner scanner = new Scanner(System.in);
       int a = scanner.nextInt();
       int b = scanner.nextInt();
       int c = scanner.nextInt();
        System.out.print("score1="+a+",");
        System.out.print("score2="+b+",");
        System.out.print("score3="+c);
    }
}

全部评论

相关推荐

Hyh_111:像这种hr就不用管了,基本没啥实力,换一个吧
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务