[BZOJ1000] A+B Problem

Description

  Calculate a+b

Input

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

Output

  Output a+b

Sample Input

1 2

Sample Output

3

HINT

  C++

1 #include <iostream>
2 using namespace std;
3 int  main()
4 {
5     int a, b;
6     cin >> a >> b;
7     cout << a + b << endl;
8     return 0;
9 }
View Code

  Pascal

1 var
2   a, b:Integer;
3 begin
4    Readln(a, b);
5    Writeln(a + b);
6 end.
View Code

  祝Pascal同学早日转C++

posted @ 2016-04-03 22:37  CtrlCV  阅读(515)  评论(0编辑  收藏  举报