Jump to content

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


kalishavali

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.