#include /* a slight change to illustrate a very useful thing: arrays */ const string names[] = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; void thing(const int N) { const int Q = N / 10, R = N % 10; if (Q > 0) { thing(Q); print(" "); } print(names[R]); } void test_it() { print("type a number (or -1 to stop) "); const int x = read_int(); if (x != -1) { thing(x); print("\n"); test_it(); } } void main() { test_it(); }