Computer Science, asked by Anonymous, 2 months ago

Write a program to enter any 2 numbers using variables and perform addition, subtraction, division and multiplication. Display the answers with proper comments

Answers

Answered by malavikabhishekviiie
0

Answer:

INPUT:

#To write a program to enter any 2 numbers using variables and perform addition, subtraction, division and multiplication.

a=60

b=10

print(a=60)

print(b=10)

print(a,"+",b,"="a+b)

print(a,"-",b,"="a-b)

print(a,"*",b,"="a*b)

print(a,"/",b,"="a/b)

OUTPUT:

a=60

b=10

60+10=70

60-10=50

60*10=600

60/10=6

Explanation:

Code should be in such proper format while entering in python or Google colaboratory.

Similar questions