101 views
2 votes
Sum of Two Numbers: Write a program that stores the integers 50 and 100 in variables and stores the sum of these two in a variable named total. Display the total on the screen.

User Ralexrdz
by
4.9k points

1 Answer

2 votes

Answer:

fifty = 50 #variable to store 50

hundred = 100 #variable to store 100

total = fifty + hundred #add the two in a variable named total

print(total) #display on screen

User Bartosz Pietraszko
by
5.3k points