python code to input two numbers and perform 4 basic operations of a calculator
Answers
Answered by
4
Answer:
Python Program to build a Simple Calculator using Nested If choice = int(input("Enter your choice:n")) # User's choice[1,2,3,4] if (choice>=1 and choice<=4): print("Enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice == 1: # To add two numbers res = num1 + num2 print("Result = ", res) elif choice ...Mar
Answered by
5
Answer:
Python Program to build a Simple Calculator using Nested If choice = int(input("Enter your choice:n")) # User's choice[1,2,3,4] if (choice>=1 and choice<=4): print("Enter two numbers: ") num1 = int(input()) num2 = int(input()) if choice == 1: # To add two numbers res = num1 + num2 print("Result = ", res) elif choice
Similar questions