In python
write the programs for the following in interactive mode
a) Add the numbers 10, 11 and 26
b) find the difference between 90 and 57
Answers
Answered by
1
Answer:
# Python3 program to add three numbers
number1 = input("First number: ")
number2 = input("\nSecond number: ")
number3 = input("\Third number: ")
sum = (number1) + (number2) + (number 3)
print("The sum of {0} and {1} and {2}is->" .format(number1, number2, number3,sum))
# Python3 program to substract two numbers
# Python3 program to substract two numbers
number1 = input("First number: ")
number2 = input("\nSecond number: ")
sub =(number1) + (number2)
print("The substraction of {0} and {1} is->" .format(number1, number2, sub))
Similar questions