Python program of arithmetical operations

Python program of arithmetical operations

In this program, we will code the following four basic arithmetical operations.

  • Addition
  • Subtraction
  • Multiplication
  • Division

Output

Enter first number: 4
Enter second number: 5
The sum of 4 and 5 is 9.0
The subtraction of 4 and 5 is -1.0
The multiplication of 4 and 5 is 20.0
The division of 4 and 5 is 0.8

Add a Comment