tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
10
Task/Reverse-a-string/Pascal/reverse-a-string-2.pascal
Normal file
10
Task/Reverse-a-string/Pascal/reverse-a-string-2.pascal
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{Copy and paste it in your program}
|
||||
function revstr(my_s:string):string;
|
||||
var out_s:string;
|
||||
ls,i:integer;
|
||||
begin
|
||||
ls:=length(my_s);
|
||||
for i:=1 to ls do
|
||||
out_s:=out_s+my_s[ls-i+1];
|
||||
revstr:=out_s;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue