AlexeySychev

Untitled

May 12th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.21 KB | None | 0 0
  1. program program2;
  2. var i,n, x:integer;
  3. b:string;
  4. a : array [1..10000] 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.       n:=n+1;
  13.   end;
  14. writeln(n+1);
  15. end.
Add Comment
Please, Sign In to add comment