First commit
This commit is contained in:
16
IUT/Info1/TD/Exercices/TVA/tva.cpp
Normal file
16
IUT/Info1/TD/Exercices/TVA/tva.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user