demander("prix hors taxe d'un DVD", pHT); demander(" nombre de DVDs achetés", nbDVD); pHTTot = nbDVD * pHT pTTCTot = /* C'est le prix total TTC de nb DVDs*/ pHTTot + (pHTTot * mTVA/100); afficher ("Prix total TTC des ", nbDVD, " DVDs:", pTTCTot); |
|
demander("prix hors taxe d'un DVD", pHT); demander("nombre de DVDs achetés", nbDVD); pHTTot = nbDVD * pHT; pTTCTot = (pHTTot + (pHTTot * mTVA)) /100; afficher ("Prix total TTC des ", nbDVD, " DVDs:", pTTCTot); |
Le calcul de pTTCTot est faux.
|