Computer Science, asked by manandhall480, 10 months ago

Write Python code to perform four basic operations (+ - * /) of a Calculator.

Answers

Answered by Anonymous
0

Aim: To perform the basic arithmetic operators.

Coding:

a = int(input("Enter a number: "))

b = int(input("Enter another number: "))

print("The sum is ", a+b)

print("The difference is ", a-b)

print("The product is ", a*b)

print("The quotient is ", a/b)

print("Thank you")

Output:

Enter a number: 6

Enter another number: 2

The sum is 8

The difference is 4

The product is 12

The quotient is 3

Thank you

Similar questions