Delphi XE3 - WayToMany characters (WayToMany==321 261 245)
Im sure I can get this shorter so consider this as Work In Progress ^.^
Edits:
Removed use of array making 2 units redundant saving a total of 61 chars
Removed useless begin..end for loop saving 16 chars
{$APPTYPE CONSOLE}uses idglobal;var i,st:int16;s,r:string;p:boolean;begin readln(s);st:=1;p:=true;repeat r:='';for I:=1to Length(s)do r:=r+iif(i mod st=0,s[i]+' ',s[i]);writeln(r);if st=length(s)then p:=false;st:=iif(p,st+1,st-1);until st<1;end.
With indent
{$APPTYPE CONSOLE}
uses idglobal;
var
i,st:int16;
s,r:string;
p:boolean;
begin
readln(s);
st:=1;
p:=true;
repeat
r:='';
for I:=1to Length(s)do
r:=r+iif(i mod st=0,s[i]+' ',s[i]);
writeln(r);
if st=length(s)then
p:=false;
st:=iif(p,st+1,st-1);
until st<1;
end.
Result: (first line is input)
