three-digits.c modified