Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. scope
  2. dim a as integer = 42
  3. print !"first scope\n";
  4. scope
  5. print a;
  6. do while a > 10
  7. a = a - 5.7
  8. dim a as double
  9. a = 25 * a
  10. print a;
  11. loop
  12. dim a as integer = 43
  13. do while a < 67
  14. a = a + 2
  15. dim a as double
  16. a = 25.78 * a - 7
  17. print a;
  18. loop
  19. print a; !"\n";
  20. end scope
  21. print !"second scope\n";
  22. print a; !"\n";
  23. scope
  24. dim b as double = 20
  25. print a;
  26. dim a as integer = 43
  27. if a > b then
  28. scope
  29. dim b as integer
  30. b = 15
  31. print b;
  32. scope
  33. dim b as integer
  34. b = 21 + a
  35. print b;
  36. end scope
  37. end scope
  38. dim b as double
  39. b = 25
  40. print b;
  41. else
  42. scope
  43. dim b as integer
  44. b = 15
  45. print b;
  46. end scope
  47. dim b as double
  48. b = 25
  49. print b;
  50. end if
  51. print a; b;
  52. end scope
  53. print a;
  54. end scope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement