53. Safe Utility Function

 Write a function add that safely adds two integers:

  • int add(int a, int b) noexcept → returns the sum of a and b.
     

The program already calls add and prints the result.
 You only need to implement the add function.

Example
 Input:

5 7

Output:

Result: 12

 

Input:

-3 8

Output:

Result: 5

 

Loading...

Input

5 7

Expected Output

Result: 12