DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
hraverkar profile image
Harshal Raverkar
private void RemoveFirstandLast(string str){

str = str.Substring(1,str.Length-2);
Console.WriteLine(str);
}
Forem Open with the Forem app