Program: four number is known, use the if statement, put them in the order from large to small output, use Python, thank you
CodePudding user response:
There is a call what, bubble sort, in order to lower the
CodePudding user response:
To sort, must the if?
,77,21,36 numlist=[1]
For I in range (3) :
If numlist [I] & gt; Numlist [I + 1] :
Ii=numlist [I + 1]
Numlist [I + 1)=numlist [I]
Numlist [I]=ii
Print (numlist)
CodePudding user response: