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