/**************************************************************************** * math4.c * * David J. Malan * malan@harvard.edu * * Computes and prints a floating-point total. * * Demonstrates use of floating-point math. ***************************************************************************/ #include int main(void) { float answer = 1 / 10.0; printf("%.2f\n", answer); return 0; }