Why minValue variable is printing 5 and not 0?
i am writing my program to find the minimum value from the given elements in a list. But the minValue variable is printing 5 and not 0. why it is printing 5 and why not 0 ? In my given list minimum value is 0 so this program should print 0. i am facing problem in line 8 and 9 where nextValue is assigned to minValue but in real it is not working.