Showing posts with label Solve Me First. Show all posts
Showing posts with label Solve Me First. Show all posts

Monday, October 7, 2019

Solve Me First

Solve Me First

Complete the function solveMeFirst to compute the sum of two integers.
Function prototype:
int solveMeFirst(int a, int b);
where,
  • a is the first integer input.
  • b is the second integer input
Return values
  • sum of the above two integers
Sample Input
a = 2
b = 3
Sample Output
5
Explanation
The sum of the two integers and is computed as:
solution:
def solveMeFirst(a,b):
        return a+b
num1 = int(input())
num2 = int(input())
res = solveMeFirst(num1,num2)
print(res)





Diagonal Difference

Diagonal Difference Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example,...