Program not displaying correct output all the time I think that you should compare [0] with [1], [2], [3] and [4], then [1] with [2], [3] and [4], then...