made a copy of the C program that is working with single numbers