Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Program Lection5Var;
  2. Uses Crt;
  3. Var
  4. S1,S2,S,N:String;
  5. I,R,Len,Position: Integer;
  6. Symbol: Byte;
  7. Begin
  8. Repeat
  9. Writeln('Введите строку с клавиатуры. Удалите все символы!');
  10. Write('Введите строку: ');
  11. Readln(S);
  12. i := 1;
  13. If Len = 0 Then
  14. Writeln('Символов не найдено, повторите ввод.');
  15. Until Len > 0;
  16. Begin
  17. Repeat
  18. If copy(S,i,2)=' ' Then
  19. S := copy(S,1,i) + copy(S,i,+2,Length(S))
  20. Else
  21. i := i + 1;
  22. Until (i > length(S));
  23. Writeln('Ответ: ',S);
  24. Readln
  25. End;
  26. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement