This commit is contained in:
Samuel Vermeulen 2023-01-05 22:12:11 +01:00
parent 858ce3c4bc
commit 875f170beb
2 changed files with 10 additions and 10 deletions

View File

@ -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 Normal file
View File

@ -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)