A+B

Description

Calculate a+b

Input

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

Output

Output a+b

Sample Input

1 2

Sample Output

3
import java.util.Scanner;
public class hello {
    public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        System.out.printf("please input a and b");
        int a=in.nextInt();
        int b=in.nextInt();
        System.out.printf("The sum %d and %d is %d
",a,b,a+b);
        
    }

}
原文地址:https://www.cnblogs.com/2228212230qq/p/7754798.html