Friday, 12 January 2018

Reverse String without changing position


str="my name is sumit"

arr=split(str," ")

result=""
for i=lbound(arr) to ubound(arr)

arr(i)=StrReverse(arr(i))
result=result&" "&arr(i)
next
 
msgbox result
 ' ym eman si timus

No comments:

Post a Comment

Spring Boot : Exception Handler 14