Programming for problem solving: Using C