Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program program1;
- var i,povest,voskl, vopr, x:integer;
- b:string;
- a : array [1..1000] of integer;
- begin
- readln(b);
- x := length(b);
- for i:=1 to x do
- begin
- if b[i] = '.' then
- povest:=povest+1;
- if b[i] = '?' then
- vopr:=vopr+1;
- if b[i] = '!' then
- voskl:=voskl+1;
- end;
- writeln(povest, vopr, voskl);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement