Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var
- Str: String;
- I, Count: Integer;
- begin
- Writeln('Введите строку');
- Readln(Str);
- Count := 0;
- for I := 1 to Length(Str) do
- if (Str[I] = '+') or (Str[I] = '-') or (Str[I] = '*') or (Str[I] = '/') then
- inc(Count);
- Writeln('Число заданных символов в строке: ', Count);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement