Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. with ada;
  2. with ada.text_io;
  3.  
  4. procedure main is
  5. glob: Integer := 42;
  6.  
  7. task a is end a;
  8. task b is end b;
  9.  
  10. task body a is
  11. begin
  12. for i in 1..100000 loop
  13. glob := glob + 1;
  14. end loop;
  15. ada.text_io.put_line(Integer'image(glob));
  16. end a;
  17.  
  18. task body b is
  19. begin
  20. for i in 1..100000 loop
  21. glob := glob - 1;
  22. end loop;
  23. ada.text_io.put_line(Integer'image(glob));
  24. end b;
  25. begin
  26. null;
  27. end main;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement