according to what testuser says, if you use realbasic, you cannot run things from the terminal. if you want to run things from the terminal, follow his first tip. then you would run a program from the terminal thus:
bwbasic
10 input "What is the radius of the circle"; r
20 pi=3.14159...