Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

kristine.vista

  • 4 years ago

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

  • This Question is Closed
  1. Jonas.
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  2. jaskaran
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    it is just a three line program , here:- s = raw_input('Enter the string: ') s = s[::-1] print s

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy