HDOJ 1000 A + B Problem

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

Author

HDOJ

Recommend

We have carefully selected several similar problems for you:  1089 1002 1090 1091 1092 

#include <cstdio>
int main(){
  int num1,num2;
  while(scanf("%d%d", &num1, &num2)!=EOF){
  printf("%d\n", num1+num2);
  }
  return 0;
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章