we can get first two elements like string y = x.substr(0,2); or smth like that and if i want to get the elements from right to left like lets have a look at last two elements i can get them into variable like y = x.substr (from position 2,2elements) and after that i will have 85 in that y but i want to get it from the last element so i will go like y = x.substr(from x.length,2elements to the left) how do i do that ?
i hope you know what i mean
i want to save all elements from right to the middle of length and then to second variable from to right to the left until it reaches middle of the length
smac thanks but its kinda Big task , while i was thinking how to create working algorithm i realised that my algorithm will work i just wanted to see that what you gave me that reverse , cuz its not just about palindromes , thank you :)