PKU1001

 這道題是要我們熟悉OJ的提交和輸入輸出問題,題目雖然簡單,但是意義重大。希望好好理解。

Description

Calculate a+b

Input

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

Output

Output a+b

Sample Input

1 2

Sample Output

3
題目是要求我們求出a+b的值。
參考程序:
#include<iostream>
using namespace std;
int main()
{
   int a,b;
  while(cin>>a>>b)
  cout<<a+b<<endl;
  return 0;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章