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