Add Two Numbers
Completed
Read two integers and print their sum.
Input
Two integers.
Output
The sum.
Example
Input
3 4
Output
7
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;
}