SyntaxFix
Write A Post
Hire A Developer
Questions
var input = "12342"; var output = input.Substring(0, input.Length - 1);
or
var output = input.Remove(input.Length - 1);