Advertisement
deced

Untitled

Jul 20th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var
  2. Str: String;
  3. I, Count: Integer;
  4. begin
  5. Writeln('Введите строку');
  6. Readln(Str);
  7. Count := 0;
  8. for I := 1 to Length(Str) do
  9. if (Str[I] = '+') or (Str[I] = '-') or (Str[I] = '*') or (Str[I] = '/') then
  10. inc(Count);
  11. Writeln('Число заданных символов в строке: ', Count);
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement