A+B Problem

A+B Problem

Time Limit: 1000MS Memory Limit: 10000K

Description

Calculate a+b

Input

Two integer a,b (0<=a,b<=10)

Output

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        System.out.println(a+b);

    }

}

Output a+b

Sample Input

1 2

Sample Output

3

原文地址:https://www.cnblogs.com/watchfree/p/5313680.html