The present paper reports on the observation of two students when solving a mathematics problem in a visual programming environment, namely Scratch. Attention was given to different types of students’ reasoning and how they utilized the computer-generated feedback. Results indicated that students’ certain kinds of reasoning when solving a mathematics problem through programming were associated with certain ways of using computer-generated feedback.