Make and run a program that will reverse the entered string without using the function strrev(). Sample output: Enter a word: Technology The reverse of this word is ygolonhceT
I think you are posting homework here. Nevertheless you should provide us with some more information about what language you want to be helped at. Using google i found out that the language could be C or PHP. Here is some Pseudocode-Text: You have a string / char array called "text". You count the characters and save the length under text_length. You go from text[length-1] back to zero in an loop and print the character at this position. Thats how strrev() is (possibly) implemented.
it is just a three line program , here:- s = raw_input('Enter the string: ') s = s[::-1] print s
Join our real-time social learning platform and learn together with your friends!