- Home
- .NET coding challenges
- Removing the last character from a string
Removing the last character from a string
This coding challenge involves you to remove the last character from a string.
It involves writing a RemoveLastCharacter
function, passing in the string as a parameter.
Begin with this function:
public class StringFunctions
{
public string RemoveLastCharacter(string value)
{
}
}
Now go ahead and write some code that will return the value without it's last character.
Related challenges
Write a C# function to convert MPH to KPH
Take our coding challenge to write a C# function with the necessary parameters that converts miles-per-hour (MPH) to kilometres-per-hour (KPH) and vice-versa.
Contains online code editor
Work out the number of days between two dates
Write a C# function to work out the difference between two dates and return the number of days in this coding challenge.
Contains online code editor