1.A+B Problem

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        int b = s.nextInt();
        System.out.print(a + b);
    }
}

第一次Java刷题需要注意:

1.类名一定要为:Main

2.上传代码不要包括包命

posted @ 2018-11-29 20:04  权八  阅读(96)  评论(0)    收藏  举报