/************************************************************************* * A sample program written in ANSI C * * C is the preferred language for writing programs that interface * * directly with the system's hardware without going through the OS * *************************************************************************/ #include #include #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 #endif int main(void) { unsigned int bottles = 99; do { printf("%u bottles of beer on the wall\n", bottles); printf("%u bottles of beer\n", bottles); printf("Take one down, pass it around\n"); printf("%u bottles of beer on the wall\n\n", --bottles); } while(bottles > 0); return EXIT_SUCCESS; }