#include <stdio.h>
int main() {
const float ttva=0.18;
foat ttc, ht, mtva;
printf("Entrer le prix ttc\n");
scanf("%f",&ttc);
ht=ttc / (1+ttva);
mtva=ttc - ht;
printf("Le prix hors taxe est de:%.2f\n",ht);
printf("Le montant du tva est de:%.2f\n",mtva);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: