First commit

This commit is contained in:
2026-04-08 20:11:20 +02:00
parent 10fe469c10
commit 79f15536a1
861 changed files with 135610 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,25 @@
#include <iostream>
#include "tva.h"
using namespace std;
int main() {
float prixUnitaireHT;
float nombreArticles;
float tauxTVAPourcent;
float prixTotalTTC;
cout << "Saisir le prix unitaire HT" << endl;
cin >> prixUnitaireHT;
cout << "Saisir le nombre d'articles" << endl;
cin >> nombreArticles;
cout << "Saisir le taux de TVA en pourcentage" << endl;
cin >> tauxTVAPourcent;
prixTotalTTC = tva(
prixUnitaireHT, nombreArticles, tauxTVAPourcent
);
cout << "Prix TTC de la commande : " << prixTotalTTC << "" << endl;
return 0;
}

View 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;
}

View File

@@ -0,0 +1 @@
float tva(float, int, float);