yoyoboyss

Untitled

May 29th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. natural a, b, c, x;
  2.  
  3. inceput
  4. citesc a, b, c;
  5.  
  6. executa
  7. inceput
  8. daca (a ≠ b sau a ≠ c) atunci
  9. inceput
  10. x = a;
  11. daca (x > b) atunci
  12. x = b;
  13. daca (x > c) atunci
  14. x = c;
  15. daca (x ≠ a) atunci
  16. a = a - x;
  17. daca (x ≠ b) atunci
  18. b = b - x;
  19. daca (x ≠ c) atunci
  20. c = c - x;
  21. sfarsit
  22. sfarsit
  23. cat_timp(a ≠ b sau a ≠ c);
  24. scrie a;
  25. sfarsit
Advertisement
Add Comment
Please, Sign In to add comment