Problem27 in C