Step 4 of 6
Decimals with double
int can't hold fractions. For numbers with a decimal point use double, and print it with %f.
double accuracy = 0.625;
printf("%f\n", accuracy); // 0.625000
printf("%.2f\n", accuracy); // 0.63 (rounded to 2 places)
%.2f means "two digits after the decimal point".
Your turn: store 1.25 in a double named rating and print it with exactly two decimals so the output is Rating: 1.25.