WAP to add, subtract, multiply and divide two numbers along with the comments
Answers
Answered by
1
Explanation:
In this tutorial, we will write a Python program to add, subtract, multiply and divide two input numbers.
Program to perform addition, subtraction, multiplication and division on two input numbers in Python
In this program, user is asked to input two numbers and the operator (+ for addition, – for subtraction, * for multiplication and / for division). Based on the input, program computes the result and displays it as output.
To understand this program you should know how to get the input from user and the basics of if..elif..else statement.
Similar questions