A+B Problem(Java练习)

来源:互联网 发布:数据挖掘最优算法 编辑:程序博客网 时间:2024/05/22 00:10

A+B Problem

Time Limit: 1000MSMemory Limit: 65536KB

Problem Description

Calculate a+b.

Input

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

Output

Output a+b.

Example Input

1 2

Example Output

3

代码如下:

import java.util.Scanner;public class Main {public static void main(String[] args) {// TODO Auto-generated method stubScanner in= new Scanner(System.in);int a=123,b=456;a=in.nextInt();b=in.nextInt();System.out.println(a+b);}}


1 0
原创粉丝点击