Writting a program to find the max number from a user given range