Swift String Exercises: Move the first two characters of a given string to the end
Write a Swift program to move the first two characters of a given string to the end. The given string length must be at least 2.
Pictorial Presentation:

Sample Solution:
Swift Code:
Sample Output:
iftSw thonPy
Go to:
PREV : Write a Swift program that accept two strings and return their concatenation, except the first char of each string. The given strings length must be at least 1.
NEXT : Write a Swift program to move the last two characters of a given string to the start. The given string length must be at least 2.
Swift Programming Code Editor:
Improve this sample solution and post your code through Disqus
What is the difficulty level of this exercise?