Objective
Write a Python program to ask the user for three numbers (a, b, c) and display the result of (a+b)*c and the result of a * c + b*c.
Instructions
- Request three numbers from the user (a, b, c).
- Calculate the result of (a+b)*c.
- Calculate the result of a * c + b*c.
- Display both results on separate lines.
2
4
2
12
12
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise