echo "Input your string without space"
read vstrfor i in $(seq 0 ${#vstr})dorvstr=${vstr:$i:1}${rvstr}doneecho "Input string was :" $vstrecho "After Reversng String Is :" $rvstrif [ "$vstr" = "$rvstr" ]thenecho "String Is Palindrome."elseecho "String Is Not Plaindrome."fi
0 Comments