Advertisement
vilgelmbb

Cycle

Nov 25th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.22 KB | None | 0 0
  1. var counterOfWords:integer;
  2.   counterOfWords:=1;
  3.   for i:=1 to length(s) do
  4.     begin
  5.         if not (s[i]in divs) then
  6.             emptyArr[counterOfWords]:=concat(emptyArr[counterOfWords],s[i])
  7.         else
  8.             inc(counterOfWords)
  9.     end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement