Sort three variables: Difference between revisions

m
used a bigger-sized bullet.
(Created page with "{{draft task}} Sort   (the values of)   three variables   (X, Y, and Z)   that contain any value   (numbers and/or literals). If that isn't possible...")
 
m (used a bigger-sized bullet.)
Line 45:
 
One algorithm could be:
Θ store the three variables   '''x''', '''y''', and '''z'''
into an array (or a list)   '''A'''
 
Θ sort (the three elements of) the array   '''A'''
 
Θ extract the three elements from the array and place them in the
variables '''x''', '''y''', and '''z'''   in order of extraction