procedure revString(var s:string); var i,j:integer; tmp:char; begin i := 1; j := length(s); while i