Add Two Numbers

Lab C++ Beginner 10 points

Read two integers and print their sum.

Input

Two integers.

Output

The sum.

Example

Input

3 4

Output

7
Sample input available Sample output available
Editor
C++

Hints

cin >> a >> b reads two values separated by any whitespace.

Solution explanation

Using long long avoids overflow for big sums.

Show solution
#include <iostream>
using namespace std;

int main() {
    long long a, b;
    cin >> a >> b;
    cout << a + b << "\n";
    return 0;
}
Output
Answer
HOME LEARN COMMUNITY DASHBOARD