Guest User

Untitled

a guest
Mar 22nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. write('Enter John points: ');
  2. read(john);
  3.  
  4. write('Enter Richard points:');
  5. read(richard);
  6.  
  7. // Первая часть
  8. if (john>21) then //proverka 1
  9. begin
  10. john := 0;
  11. end;
  12.  
  13. if (richard>21) then //proverka 2
  14. begin
  15. richard := 0;
  16. end;
  17.  
  18. // Вторая часть
  19. if (john=richard) then
  20. begin
  21. writeln('Draw!');
  22. end
  23. else
  24. begin
  25. if (john>richard) then
  26. begin
  27. writeln('Richard has lost this game, John win');
  28. end
  29. else
  30. begin
  31. writeln('John has lost this game, Richard win');
  32. end;
  33. end;
Add Comment
Please, Sign In to add comment