Files
CITISE1/IUT/Info1/TD/Exercices/TVA/tva.cpp
2026-04-08 20:11:20 +02:00

16 lines
292 B
C++

#include "tva.h"
float tva(
float prixHTUnit,
int nbArticles,
float tauxTVAPourcent
) {
float montantTVA;
float prixTotalTTC;
montantTVA = prixHTUnit * tauxTVAPourcent / 100;
prixTotalTTC = nbArticles * (prixHTUnit + montantTVA);
return prixTotalTTC;
}