% cd
% cd cs21
% mkdir week3
% cd week3
% pwd
then copy these files to your week3 subdirectory:
% cp ~newhall/public/cs21/week3/* .
% emacs factorial.c & % gvim factorial.c &
After we examine it in class, try running it. Try running it for different input values. What happens when n is large? why? how can you fix this?
% emacs squares.c &
Examine the code. Once you understand what it is doing, compile and
run it. Does the program's output make sense to you?
I'll step through this execution in class.