First commit
This commit is contained in:
25
IUT/Info1/TD/Exercices/TVA/main.cpp
Normal file
25
IUT/Info1/TD/Exercices/TVA/main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user