Computer Science, asked by varsha05062006, 3 months ago

write a python program to accept two numbers, print sum, difference, product and
quotient​

Answers

Answered by atrs7391
30

"""

Project Type: Brainly Answer

Date Created: 10-02-2021

Date Edited Last Time: ---NIL---

Question Link: https://brainly.in/question/34934885

Question: Write a python program to accept two numbers, then print sum, difference, product and

quotient.

Program Created By: atrs7391

Programming Language: Python

Language version (When program created or last edited): Python 3.9.1

"""

n1 = float(input("Enter First Number: "))

# taking input from user

n2 = float(input("Enter Second Number: "))

# taking input from user

print("Sum =", n1+n2)

# calculating and printing Sum

print("Difference =", n1-n2)

# calculating and printing Difference

print("Product =", n1*n2)

# calculating and printing Product

print("Quotient =", n1/n2)

# calculating and printing Quotient

Answered by spsanvei
6

Answer:

Project Type: Brainly Answer

Date Created: 10-02-2021

Date Edited Last Time: ---NIL---

Question Link: brainly.in/question/34934885

Question: Write a python program to accept two numbers, then print sum, difference, product and

quotient.

Program Created By: atrs7391

Programming Language: Python

Language version (When program created or last edited): Python 3.9.1

"""

n1 = float(input("Enter First Number: "))

# taking input from user

n2 = float(input("Enter Second Number: "))

# taking input from user

print("Sum =", n1+n2)

# calculating and printing Sum

print("Difference =", n1-n2)

# calculating and printing Difference

print("Product =", n1*n2)

# calculating and printing Product

print("Quotient =", n1/n2)

# calculating and printing Quotient

Explanation:

Similar questions