Update print.c

Updated based on in class notes