how to get a max number in c