Homework for 1st semester (Plain C)