DIM sentence AS STRING, word AS STRINGPRINT "Give me a sentence: ";INPUT sentencesentence = sentence + " "DO wordpos = INSTR(sentence, " ") word = LEFT$(sentence, wordpos - 1) sentence = RIGHT$(sentence, LEN(sentence) - wordpos) PRINT wordLOOP UNTIL wordpos = 0