REM program to get 5 numbers and pring them in ascending order
CLS
DIM n(5)
FOR i = 1 TO 5
INPUT n(i)
NEXT i
PRINT "numbers in ascending order"
FOR i = 1 TO 5
FOR j = 1 TO 5 - i
IF n(j) > n(j + 1) THEN SWAP n(j), n(j + 1)
NEXT j
NEXT i
FOR i = 1 TO 5
PRINT n(i)
NEXT i
END