Computer Science, asked by krissingh2008, 18 days ago

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 BrainlyProgrammer
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}")

 \sf \: Extras:  -

# 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