Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. dim shared promena as integer
  2.  
  3. function foo() as integer
  4. static poprve as integer = 0
  5. static promena as integer
  6. if poprve = 0 then
  7. promena = 42
  8. poprve = 1
  9. else
  10. return promena
  11. end if
  12. end function
  13.  
  14. scope
  15. input promena
  16. dim a as integer
  17. a = foo()
  18. print a;
  19. a = foo()
  20. print a;
  21. end scope
  22.  
  23.  
  24. /' (input into shared): ✓ × INTERPRETER EXIT CODE expected=0, returned=54 '/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement