/*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 {20,30,40,50,60,70,80,90}*/ static void print_tens(n) int n; { switch(n) { case 20: printf("twenty"); break; case 30: printf("thirty"); break; case 40: printf("forty"); break; case 50: printf("fifty"); break; case 60: printf("sixty"); break; case 70: printf("seventy"); break; case 80: printf("eighty"); break; case 90: printf("ninety"); } }

Next slide