Skip to content

Instantly share code, notes, and snippets.

@DuncantheeDuncan
Created September 11, 2019 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuncantheeDuncan/798361169cab24c5d274cf3146005b02 to your computer and use it in GitHub Desktop.
Save DuncantheeDuncan/798361169cab24c5d274cf3146005b02 to your computer and use it in GitHub Desktop.
# taking user input from the user
space ="\n"
print space
one = input("enter the first number ")
two = input("enter the second number ")
three = input("enter the third number ")
four = input("enter the fourth number ")
five = input("enter the fifth number ")
print space
print space
# Displaying the output from the user.
print "you entered ", one ," as your first number"
print "you entered ", two ," as your second number"
print "you entered ", three ," as your third number"
print "you entered ", four ," as your fourth number"
print "you entered ", five ," as your fifth number"
answer = one+two+three+four+five
print space
print "The sum of the five integer value is :",answer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment