Is it because i use array? Output of the program shows correct maximum. Please someone give me a hint. Thanks