Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
input 113 56 456 89 32 104
output 56 89 32 113 456 104
Posted
Updated 26-Jan-16 19:33pm
v2
Comments
Sergey Alexandrovich Kryukov 27-Jan-16 1:43am    
Huh?
Mohibur Rashid 27-Jan-16 2:10am    
I feel like you have forgotten something..

1 solution

Read all strings
Split into substrings
Create two new strings
For each substring:
    if 2 digits then add to the first string
    if 3 digits then add to the second string
Print the two strings
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900