Mini Calculator in Python
Calculator Using Python
| num1=10 num2=20 | | ||
| ans1 = num1 + num2 |
| print("The addition of both the numbers is ", ans1) |
| ans2 = num2 - num1 |
| print("The Substraction of both the numbers is ", ans2) |
| ans3 = num1 * num2 |
| print("The multiplication of both the numbers is ", ans3) |
| ans4 = num2 / num1 |
| print("The division of both the numbers is ", ans4) |
| ans5 = num2 % num1 |
| print("The remainder of both the numbers is ", ans5) |
| ans6 = num2 ** num1 |
print("The power multiplication of both the numbers is ", ans6)
Explanation :
In this code i have used different arithmetic operators to calculate the outcome of the operations between two numbers in python
For such content must subscribe to my YouTube channel : https://www.youtube.com/@techaman1153
Comments
Post a Comment