Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

kristine.vista Group Title

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

  • 3 years ago
  • 3 years ago

  • This Question is Closed
  1. Jonas. Group Title
    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.

    • 3 years ago
  2. jaskaran Group Title
    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 years ago
    • Attachments:

See more questions >>>

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.