Made problem4.c easier to modify for more digits