fork download
  1. program ideone;
  2. Var
  3. s : string;
  4. i : Integer;
  5. begin
  6. readln(s);
  7. for i:= Length(s) downto 1 do Write( s[ i ] );
  8. end.
Success #stdin #stdout 0s 2004KB
stdin
124567
stdout
765421