#COMPILE EXE "s08_minmax.exe"
' Sample: MIN and MAX functions
FUNCTION PBMAIN() AS LONG
    DIM a AS LONG, b AS LONG, c AS LONG
    a = 15 : b = 42 : c = 7
    PRINT "Values:"; a; b; c
    PRINT "MIN ="; MIN(a, MIN(b, c))
    PRINT "MAX ="; MAX(a, MAX(b, c))
    PRINT "MIN(5,10) ="; MIN(5,10)
    PRINT "MAX(5,10) ="; MAX(5,10)
    FUNCTION = 0
END FUNCTION
