[Python] Write a program that will perform basic arithmetic operations: sum, difference, product and modulus of 2 integers.

Write a program that will perform basic arithmetic operations: sum, difference, product and modulus of 2 integers. 

Deliverables

  • User enters 2 integers.
  • The program finds the sum, difference, product and modulus of the integers. 
  • The program prints the results with appropriate labels.

SAMPLE RUN (User entry is in RED)

Enter the first integer 10

Enter the second integer 5

Results

The sum of 10 and 5 is 15

The difference of 10 and 5 is 5

The product of 10 and 5 is 50

The modulus of 10 and 5 is 0

Project Template

  Solved by verified study co-pilot   All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.
Student review: (1 ratings) 17 out of 1 people found this solution helpful.