Corps d'un
algorithme simplifi� |
Donn�es
+ Corps d'un algorithme d�taill� |
Demander le prix hors taxe (pHT ) d'un DVD Demander le nombre (nbDVD) de DVDs achet�s Calculer le prix hors taxe (pHTTot) des nbDVD Calculer le prix TTC (pTTCTot) en appliquant la TVA (mTVA) � pHTTot Afficher pTTCTot |
/* Les donn�es
*/ float pHT, pHTtot, pTTCTot, mTVA=20.6; int nbDVD; /* Les traitements */ demander("prix hors taxe d'un DVD", pHT); demander( "nombre de DVDs achet�s", nbDVD); pHTTot = nbDVD * pHT; pTTCTot = pHHTot + (pHTTTot * mTVA/100); afficher ("Prix total TTC des ", nbDVD, " DVDs:", pTTCTot); |