C#: Create a new string without the first and last character of a given string of any length
Remove First and Last Char
Write a C# Sharp program to create a new string without the first and last characters of a given string of any length.
Visual Presentation:

Sample Solution:-
C# Sharp Code:
Sample Output:
ell
Flowchart:

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a C# Sharp program to move the last two characters to the start of a given string of length at least two.
Next: Write a C# Sharp program to create a new string using the two middle characters of a given string of even length (at least 2).
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics