Commit aa08ee7
authored
Create ProductOfSumAndDifference.py
You are given two integers, a and b.
Compute the Sum and Difference of a and b. Return the Product of Sum and Difference.
Input Format
First Parameter - Integer a
Second Parameter - Integer b
Output Format
Return the integer.
Example 1:
Input:
5
2
Output:
21
Explanation:
Sum is (5 + 2) = 7 and Difference is (5 - 2) = 3. The product of Sum and Difference is 21.1 parent f3dabfe commit aa08ee7
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments