C Matrix Program