daily pastebin goal
22%
SHARE
TWEET

Addition code

Sheyii Jan 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Hi, I am Sheyii, your personal bot.")
  2.  
  3. print ("Addition of three numbers")
  4.  
  5. input1 = input("Number 1>")
  6. input2 = input("Number 2>")
  7. input3 = input("Number 3>")
  8.  
  9. number1 = int(input1)
  10. number2 = int(input2)
  11. number3 = int(input3)
  12.  
  13. result = number1 + number2 + number3
  14.  
  15. output = str(result)
  16.  
  17. print(input1 + "+" + input2 + "+" + input3 + "=" + output)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top