Write a program in Python to store Two number in variables and display the result.
Answers
Answer:
Python Program to Add Two Numbers
Python Program to Add Two Numbers# This program adds two numbers provided by the user.
Python Program to Add Two Numbers# This program adds two numbers provided by the user.# Store input numbers.
Python Program to Add Two Numbers# This program adds two numbers provided by the user.# Store input numbers.num1 = input('Enter first number: ')
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: ')
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.
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)
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.
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))
Explanation:
Hope it helps u
Answer:
This program adds two numbers provided by the user.
Store input numbers.
# 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))
Explanation:
please mark me as brainlist