A + B Problem

Calculate A + B

InputEach line will contain two integers A and B. Process to end of file. 
OutputFor each case, output A + B in one line. 
Sample Input

1 1

Sample Output

2
 1 #include <stdio.h>
 2 
 3 void solve(){
 4     int a,b;
 5     while(scanf("%d%d",&a,&b)!=EOF){
 6         printf("%d\n",a+b);     
 7     }
 8 }
 9 int main(){
10     solve();
11     return 0;
12 }

 

上一篇:leetcode 子集


下一篇:python 解方程