/* Program: beers.c How many beers are left after 5 rounds? */ #include #include "genlib.h" #include "simpio.h" main() { float beers ; for (beers = 1.0; beers != 0.0; beers -= 0.2) { printf("%f %s\n%f %s\n", beers, "bottles of beer on the wall", beers, "bottles of beer"); printf("Take a fifth down, pass it around\n"); printf("%e bottles of beer on the wall\n\n", beers - 0.2 ) ; } }