Advertisement
machalda

Algoritmizace #5

Oct 17th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.66 KB | None | 0 0
  1. // EXE: http://machalda.cekuj.net/d.php?f=30
  2.  
  3. program soubor1;
  4.  
  5. var pole:string;
  6.     i:byte;
  7.  
  8. function otoc(fPole:string):string;
  9. var pom:string;
  10.     begin
  11.          pom:='';
  12.          for i:=ord(fPole[0]) downto 1 do
  13.              pom:=pom+fPole[i];
  14.              otoc:=pom;
  15.     end;
  16. begin
  17.      writeln('###########################################################');
  18.      writeln('#       Zadej text k obraceni');
  19.      write('#->       text: ');
  20.      readln(pole);
  21.      writeln('#');
  22.      write('#     ');
  23.      writeln(otoc(pole));
  24.      writeln('#');
  25.      writeln('########################## KONEC ##########################');
  26. readln;
  27. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement