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\n",a,b,a+b);
        
    }

}

 

posted @ 2017-10-30 15:43  不负、  阅读(1280)  评论(0编辑  收藏  举报