ユーザーが塗料のリットルの価格を入力する必要があるコードがあります...しかし、「2.50」などの価格しか受け入れません。ユーザーが「2,50」を入力した場合、プログラムでコンマをポイントに変換できますか? ? Cを使って!
printf ("\n How many liters of green paint we'll use? ");
scanf ("%d", &green);
printf ("\n How many liters of blue paint we'll use? ");
scanf (" %d", &blue);
printf ("\n What's the price for the liter of green paint? ");
scanf ("%f", &priceG);
fflush(stdin);
printf ("\n What's the price for the liter of blue paint? ");
scanf ("%f", &priceB);