Jump to content

form should accept sentence with odd number of words and give output as reverse the sentence


Recommended Posts

Create a data form that should accept odd number of words in a particular sentence

Input Example: I am working in retailon.

and should display the output as reversing first and last word and second word to fourth word

and so on and the middle word should be same and should also display the number of words.

Output Example: retailon in working am i.

words=5.

Input:I am Working in Google.

Output:Google in Working am I.

Words:5

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.