Last list item: Difference between revisions

Content added Content deleted
Line 541: Line 541:


List = [6,81,243,14,25,49,123,69,11]
List = [6,81,243,14,25,49,123,69,11]
Temp = []
n = 0
n = 0

x = min(List)
see "min = " + x +nl


while true
while true
n++
n++
Temp = sort(List)
List = sort(List)
first = Temp[1]
first = List[1]
second = Temp[2]
second = List[2]
ind1 = find(List,first)
ind1 = find(List,first)
ind2 = find(List,second)
ind2 = find(List,second)