same results

help me write ap rogram code that inputs either string or integer and outputs the same but in reverse
i.e. 1 2 3 4 = 4 3 2 1
or
chimwala = alawmihc

Comments

  • // reverse a string
    program reverse;

    procedure Main();
    var
    before : string;
    len : integer;
    begin
    WriteLn('Enter string ');
    ReadLn(before);
    len:=length(before);
    repeat
    Write(before[len]);
    len:=len-1;
    until len =0;


    end;

    begin
    Main();
    end.
  • I POSTED CODE FOR ALL YR PROBLEMS....BUT U NEVER SAY THANK U :( ....OK I WILL NEVER POST CODE FOR U
  • This post has been deleted.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories