Created
March 14, 2012 16:04
-
-
Save Eric-Bro/2037507 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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