function printFlips(n)
% printFlips(n) prints the result of n coin flips

% Written by Paul Chew for CS100M, Feb 2006
for k = 1:n
	if rand(1) > 0.5
		fprintf('H');
	else
		fprintf('T');
    end
end
fprintf('\n');
