Advertisement
notarazi

razi-pseudocode-switch-modular

Jun 12th, 2013
1,841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. BEGIN main
  2. INPUT userOption
  3. SWITCH userOption
  4. CASE 1: CALL updatedata
  5. CASE 2: CALL displaydata
  6. END SWITCH
  7. END main
  8.  
  9. BEGIN displaydata
  10. FOR all item in array PRINT item values
  11. END displaydata
  12.  
  13.  
  14. BEGIN updatedata
  15. INPUT indexnumber, arrayvalue
  16. arr[indexnumber]=arrayvalue
  17. END updatedata
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement