Playing with numbers in C