gfx$=Input("Use Windowed Mode?") If Left$(Lower$(gfx$),1)="y" Graphics3D 800,600,0,3 ElseIf Left$(Lower$(gfx$),1)="n" Graphics3D 1200,1000,0,1 EndIf in$=Input("How Many Balls?") Print "Okay there will be"+in$+"balls"
You should be aware that your code contains other problems - for instance, if you enter something other than "y" or "n", the program will continue regardless without setting either of your specified graphics modes.
Second, on the "How many balls?" bit, you aren't checking that the result is a numerical value - the end user can type anything there.