From 414c038defab93a54f7213e03ea7d61b922442c6 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Wed, 8 Apr 2026 10:16:11 +0200 Subject: [PATCH] aggiunge esercizio 11 --- lab11.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lab11.py diff --git a/lab11.py b/lab11.py new file mode 100644 index 0000000..1f4f91e --- /dev/null +++ b/lab11.py @@ -0,0 +1,12 @@ +income = float(input("Enter the annual income: ")) + +if income<85528: + tax = income*0.18 - 556.2 +else: + tax = 14839.2 + 0.32 * (income - 85528) + +if tax<0: + tax = 0 + +tax = round(tax, 0) +print("The tax is:", tax, "thalers") \ No newline at end of file