关于a+b的编程问题
Problem Description
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
帮帮忙!!!有点急···谢谢
import *; import java.math.BigInteger; import java.util.*; class Main{ public static void main(String[] args){ Scanner cin=new Scanner(System.in); BigInteger a; BigInteger b; a=cin.nextBigInteger(); b=cin.nextBigInteger(); System.out.println(a.add(b)); } }