0

Please give program

i get input string --> "my India is big and great" i want to output as -->"great and big is india my"

21st Aug 2017, 6:44 PM
Hardik Aghara
Hardik Aghara - avatar
2 Answers
+ 7
I won't give you the finished program, however I can tell you how to achieve this 1) split you string on the space character this will convert it to an array 2)create a for-loop which starts at array.length and decreases until it reaches 0 3)print each word in that for loop
21st Aug 2017, 6:48 PM
Kamil
Kamil - avatar
+ 1
thanks
22nd Aug 2017, 1:23 AM
Hardik Aghara
Hardik Aghara - avatar