problem 9 in C & rb