Add two numbers
Read two whole numbers and print their sum.
Input
3 4
Expected output
7
Input
-5 2
Expected output
-3
Show a hint
cout << a + b << endl;
Show a solution
Loading the editor…
Run the tests to check your solution.
Read two whole numbers and print their sum.
3 4
7
-5 2
-3
cout << a + b << endl;