Samuel Vermeulen 4 weeks ago
parent
commit
875f170beb
  1. 10
      arrond.py
  2. 10
      augmentation_taxes.py

10
arrond.py

@ -1,10 +0,0 @@
from math import *
taxeA = float(input())
taxeN = float(input())
prixA = float(input())
prixAHT = round(prixA + prixA*(-taxeA / 100))
prixN = prixAHT + prixAHT*(taxeN / 100)
print(round(prixN,2))

10
augmentation_taxes.py

@ -0,0 +1,10 @@
from math import *
taxeA = float(input())
taxeN = float(input())
prixA = float(input())
prixN = prixA / ( 1 + taxeA / 100) * (1 + taxeN / 100)
prixN = round(prixN * 100) / 100
print(prixN)
Loading…
Cancel
Save