Homework #4
Due Friday, February 23rd at 5pm
Note: bold text in the examples is input from the user.
Example:
% a.out
How big a diamond do you want? 4
Here you go:
#
###
#####
#######
#########
#######
#####
###
#
Example:
% a.out How big a diamond do you want? 4 Here you go: /\ / \ / \ / \ \ / \ / \ / \/
Example:
% a.out Hog name: Abagail This one will win. % a.out Hog name: Balthazar This one will lose.