/*bignumwords.c - print the English words representing any given number from 0 to 999,999. Copyright (c) 1998 by Matthew Belmonte.*/ /*print the word that represents the given number in [1,999]*/ static void print_hundreds(n) int n; { if(n >= 100) { print_lownums(n/100); printf(" hundred "); n %= 100; } if(n >= 20) { print_tens(n/10*10); n %= 10; if(n != 0) { printf("-"); print_lownums(n); } } else print_lownums(n); }

next slide