A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • 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

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...


  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.