Guest User

Untitled

a guest
Apr 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. var
  2. i, j, x, c: integer;
  3. begin
  4. x:=?;
  5. i:=1;
  6. j:=45;
  7. c:=0;
  8. while i<>j do
  9. if i<j then
  10. begin
  11. i:=i+x;
  12. x:=x-1;
  13. c:=c+1;
  14. end
  15. else
  16. begin
  17. j:=j+x;
  18. x:=x-1;
  19. c:=c+1;
  20. end;
  21. end.
Add Comment
Please, Sign In to add comment