Correct formatspecifier for float and double in printf is "%f" not your "%lf" (UB = undefined behaviour).Code:printf("\nPrix livrasion : %.2lf$", prixL);
Correct formatspecifier for float and double in printf is "%f" not your "%lf" (UB = undefined behaviour).Code:printf("\nPrix livrasion : %.2lf$", prixL);