C exercise messing around with pascal's triangle