Objective
Write a program in Python that calculates the result of adding, subtracting, multiplying and dividing two numbers entered by the user.
In addition you should also calculate the rest of the division on the last line.
Instructions
- Solicit two numbers from the user.
- Calculate the sum of the two numbers.
- Calculate the subtraction of the two numbers.
- Calculate the multiplication of the two numbers.
- Calculate the division of the two numbers.
- Display the result of the sum, subtraction, multiplication, and division on separate lines.
- Calculate and display the remainder of the division of the two numbers.
12
3
15
9
36
4.0
0
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise