' Input Demo — USER INPUT with INPUT statement
#COMPILE EXE
#DIM ALL

FUNCTION PBMAIN() AS LONG
    LOCAL name AS STRING
    LOCAL age AS LONG

    INPUT "What is your name: ", name
    INPUT "How old are you: ", age

    PRINT
    PRINT "Hello, " + name + "!"
    PRINT "You are " + STR$(age) + " years old."
    PRINT

    IF age >= 18 THEN
        PRINT "You are an adult."
    ELSE
        PRINT "You are a minor."
    END IF

    FUNCTION = 0
END FUNCTION
