SHARE
TWEET

Spenden Rechner

a guest Aug 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def aaa(Spendenbetrag):
  2.     End = Spendenbetrag - Spendenbetrag/100*5-0.21
  3.     print(End)
  4.  
  5. def bbb(Spendenbetrag):
  6.     End = Spendenbetrag + Spendenbetrag/100*5+0.21
  7.     print(End)
  8.  
  9. print("Wähl aus:")
  10. print("1: Wie viel meiner Spende kommt an?")
  11. print("2: Was muss ich spenden für so viel?")
  12. chos = input()
  13. Spendenbetrag = float(input("Betrag:\n"))
  14. if chos == "1":
  15.     aaa(Spendenbetrag)
  16.     input()
  17. if chos == "2":
  18.     bbb(Spendenbetrag)
  19.     input()
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top