what i meant is how to get the word back. for example, i create a function that asks user to input a string. let say the user typed the word house as the string. then my function will check the string and flip it(checking and returning the output starting from the last character) so it will output esuoh instead of house.
but if the user entered the word mum for example, the function would still output the word mum because either way the word mum is still the same.
so what i want to know is how do i create a function that will only accept a string that if you flip it(i don't know what else to call it) it will output the same string again(e.g: mum)? but if the user entered house it will display an error message. something like that.
so how do i create this function? i hope my explanation is understandable...
tq