SHARE
TWEET

firstattempt

a guest Feb 21st, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("first attempt")
  2. print("lets try to do some mathematics")
  3. input1 = input("number 1>")
  4. input2 = input("number 2>")
  5. input3 = input("number 3>")
  6. number1 = int(input1)
  7. number2 = int(input2)
  8. number3 = int(input3)
  9. add = number1 + number2 + number3
  10. area = number1 * number2
  11. subs = number3 - number2 - number1
  12. output1 = str(add)
  13. print(input1 + "+" + input2 + "+" + input3 + "=" + output1)
  14. output2 = str(area)
  15. print(input1 + "*" + input2 + "=" + output2)
  16. output3 = str(subs)
  17. print(input3 + "-"  + input2 + "-" + input1 + "=" + output3)
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