InterviewSolution
Saved Bookmarks
| 1. |
Implement the following function:def Calculate(n, m):The function accepts two integers 'n' and 'm'. You have to find and return the result according to following conditions:If n > m, return (n * m) - (n - m) i.e. difference of n*m and n-m.• If n m, so (n*m) - (n-m) = (28*2) - (28-2) = 30, thus output is 30.Sample Inputn: 5m: 13Sample Output-15 |
|
Answer» ddhdasyfhlsfpk Explanation: wesgjrfoedu |
|