tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
12
Task/Reverse-a-string/AutoIt/reverse-a-string.autoit
Normal file
12
Task/Reverse-a-string/AutoIt/reverse-a-string.autoit
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#AutoIt Version: 3.2.10.0
|
||||
$mystring="asdf"
|
||||
$reverse_string = ""
|
||||
$string_length = StringLen($mystring)
|
||||
|
||||
For $i = 1 to $string_length
|
||||
$last_n_chrs = StringRight($mystring, $i)
|
||||
$nth_chr = StringTrimRight($last_n_chrs, $i-1)
|
||||
$reverse_string= $reverse_string & $nth_chr
|
||||
Next
|
||||
|
||||
MsgBox(0, "Reversed string is:", $reverse_string)
|
||||
Loading…
Add table
Add a link
Reference in a new issue