2. Python Program to calculate Multiplication and Division of two numbers.
How does this program work?
- In this program you will learn about how to find Multiplication and Division of two numbers using Python.
- Initially The integer entered by the user is stored in two variables a,b.
- After that by using the given formula you will get the output.
Here is the code
a = int (input("Enter first number: "))
b = int(input("Enter second number: "))
Mul = a+b; #Multiplication of two numbers
Div = a-b; #Division of two numbers
# To print the result
print("Multiplication of ",a,"*",b,"=",a*b)
print("Division of ",a,"/",b,"=",a/b)