/** * floats-1.c * * David J. Malan * malan@harvard.edu * * Prints 1/10 as a floating-point value to one decimal place. * * Demonstrates division of floating-point values. */ #include int main(void) { float f = 1.0 / 10.0; printf("%.1f\n", f); }