Getting rid of these "printfs" except the last one would certainly make your original program more professional.
Other than that, professional developers usually take extra caution on error handling. For example, what if your program is invoked in the following way:
a.out < input.lst
where the content of "input.lst" is as following:
10
3
4
5