A+B: Difference between revisions

10 bytes removed ,  4 years ago
Line 3,698:
<lang qbasic>START:
PRINT "Enter two integers between -1000 and +1000 separated by at least one space: "
INPUT "> "; n$ ' | LINE INPUT allows entry of| spaceEnter andtwo othernumbers non-numericwith at least one space charactersbetween.
n$ = _TRIM$(n$) ' | TRIM any leading or trailing spaces.
bpos = INSTR(n$, " ") ' | Find the first space between the two numbers.
306

edits