Untitled

From Tinct Dove, 13 Years ago, written in C, viewed 2 times.
URL https://paste.blessuren.de/view/89d5ec5e Embed
Download Paste or View Raw
  1. 1       #define N 10
  2. 2      
  3. 3       byte x=0;
  4. 4       byte y=0;
  5. 5       byte z=0;
  6. 6      
  7. 7       active proctype P_X(){
  8. 8               do
  9. 9                       :: x==y && x == z && x < N->
  10. 10                      x=x+1
  11. 11              od;
  12. 12      }
  13. 13      active proctype P_Y(){ 
  14. 14              do
  15. 15                      :: x>y && y < N->
  16. 16                      y=y+1
  17. 17              od;
  18. 18      }
  19. 19     
  20. 20      active proctype P_Z(){ 
  21. 21              do
  22. 22                      :: y>z && z < N->
  23. 23                      z=z+1
  24. 24              od;
  25. 25      }
  26.  

Reply to "Untitled"

Here you can reply to the paste above