A + B
Enter two integers and find the sum of these two integers.
Input format
Enter two integers A, B, separated by spaces, 0≤A,B≤10^8
Output format
Output an integer, representing the sum of these two numbers
Sample input:
3 4
Sample output:
7
Idea and code:
// 标准的顺序结构:定义变量 → 输入变量 → 执行算法 → 输出变量
#include <iostream>
using namespace std;
int main()
{
int a, b; // 定义变量
cin >> a >> b; // 输入变量
cout << a + b << endl; // 输出变量
return 0;
}