Advertisement
AlexeySychev

Untitled

May 12th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.34 KB | None | 0 0
  1. program program1;
  2. var i,povest,voskl, vopr, x:integer;
  3. b:string;
  4. a : array [1..1000] of integer;
  5. begin
  6.  
  7. readln(b);
  8. x := length(b);
  9. for i:=1 to x do
  10.   begin
  11.     if b[i] = '.' then
  12.       povest:=povest+1;
  13.     if b[i] = '?' then
  14.       vopr:=vopr+1;
  15.     if b[i] = '!' then
  16.       voskl:=voskl+1;
  17.   end;
  18. writeln(povest, vopr, voskl);
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement