   10 rem "on(x) goto" test program
   20 print "enter the number 1, 2 or 3" 
   30 input x
   40 print "the on-goto statment" 
   50 on x goto 100 , 200 , 300
   60 print "failed the test" 
   70 goto 999
  100 print "branched to line 100" 
  110 goto 20
  200 print "branched to line 200" 
  210 goto 20
  300 print "branched to line 300" 
  310 goto 20
  999 end 
