write a program in python: Take any two numbers and find its addition, substraction, multiplication and division.(Please give the whole program and don't make any mistakes)
Answers
Answered by
5
Answer:
#python program that performs addition, subtraction, multiplication and division
a = (int) (input("Enter a number:"))
b = (int) (input("Enter a number:"))
print("======\n Calculating... please wait\n=====")
print(f"{a}+{b}={a+b}")
print(f"{a}-{b} = {a-b}")
print(f"{a}×{b} = {a*b}")
print(f"{a}÷{b} = {a/b}")
# The f in print statement is used for formatting a string. It is also called F-String
#Example
name = "BrainlyProgrammer"
location = "Brainly India"
print(f"My name is {name}, from {location}")
Attachments:
Similar questions