write a program in python to dosplay the sum of three variable using interactive mode
Answers
Answered by
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
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
Math,
6 months ago
Math,
6 months ago
English,
6 months ago
Art,
1 year ago
Computer Science,
1 year ago