Skip to content

Instantly share code, notes, and snippets.

@Eric-Bro
Created March 14, 2012 16:04
Show Gist options
  • Save Eric-Bro/2037507 to your computer and use it in GitHub Desktop.
Save Eric-Bro/2037507 to your computer and use it in GitHub Desktop.
Var a:array[1..240] of string;
s:string; j,i:integer;
begin
readln(s);s:=s+' ';
j:=1;
for i:=1 to length(s)-1 do
if s[i]<>' ' then
a[j]:=a[j]+s[i]
else if s[i+1]<> ' ' then
j:=j+1;
for j:=1 to 10 do
writeln(a[j]);
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment