document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. BEGIN main
  2. INPUT userOption
  3. WHILE userOption<>0 DO
  4. SWITCH userOption
  5. CASE 0: PRINT "bye!"
  6. CASE 1: CALL updatedata
  7. CASE 2: CALL displaydata
  8. END SWITCH
  9. END WHILE
  10. END main
  11.  
  12. BEGIN displaydata
  13. FOR all item in array PRINT item values
  14. END displaydata
  15.  
  16. BEGIN updatedata
  17. INPUT indexnumber, arrayvalue
  18. arr[indexnumber]=arrayvalue
  19. END updatedata
');