Computer Science, asked by sdeepak11110, 8 months ago

write a program in python to dosplay the sum of three variable using interactive mode​

Answers

Answered by navkomal
0

Answer:

Python Program to Add Two Numbers

# This program adds two numbers provided by the user.

# Store input numbers.

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')

# Add two numbers.

sum = float(num1) + float(num2)

# Display the sum.

print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

Answered by GravityFalls
1

Answer:

Explanation:

x=int(input("Enter value 1:"))

y=int(input("Enter value 2:"))

z=int(input("Enter value 3:"))

print("Three numbers are:", x,y,z);

sum=x+y+z

print("SUM of given numbers is", sum)

output-

Enter value 1:20

Enter value 2:21

Enter value 3:22

Three numbers are: 20 ,21 ,22

SUM of given numbers is 63

Similar questions