Update three-digit.c

removed {} at the last for()