Дамп всех задач
This commit is contained in:
15
str/Program5.pas
Normal file
15
str/Program5.pas
Normal file
@@ -0,0 +1,15 @@
|
||||
var
|
||||
a, m: int64;
|
||||
s: string;
|
||||
f: char;
|
||||
|
||||
begin
|
||||
ReadLn(s);
|
||||
Readln(f);
|
||||
m := 0;
|
||||
for a := 1 to s.Length do
|
||||
begin
|
||||
if (s[a] = f) then m := m + 1;
|
||||
end;
|
||||
write(m);
|
||||
end.
|
||||
Reference in New Issue
Block a user