Python Program to enter two numbers and perform all arithmetic operations – arithmetic calculator
#########################################
# Language : Python
# Topic: Arithmetic Calculator
# Author : Anjeev Singh
#########################################
n = int(input("Enter Number 1: "))
m = int(input("Enter Number 2: "))
print("\nNumbers are ", n , "and", m)
print('-' * 20)
sum = n + m # addition
print("Sum: ", sum)
diff = n - m # subtraction
print("\nDifference: ", diff)
prod = n * m # product
print("\nProduct: ", prod)
quo = n / m # division
print("\nQuotient: ", quo)
intquo = n // m #floor/integer division
print("\nInteger Quotient: ", intquo)
rem = n % m #modulo/remainder
print("\nRemainder : ", rem)
power = n ** m #exponentiation
print("\n", n, "raised to power", m,": ", power)
- Python Program to find sum of two numbers
- Python Program to enter two numbers and perform all arithmetic operations – arithmetic calculator
- Python Programs to calculate the area and perimeter of a rectangle
- Python program to calculate the area and circumference of a circle
- Python program to calculate the sum and average of three numbers
- Python program to convert KM into Inches
- Python program to calculate Simple Interest and Amount
- Python program to calculate Compound Interest and Amount
- Python program to calculate the area of a triangle
- Python program to convert temperature Fahrenheit to Celsius and Celcius to Fahrenheit