DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
hraverkar profile image
Harshal Raverkar

if (str.Length <= 2) return;
var t = str.Substring(1, str.Length - 2);
Console.Write(t);

Forem Open with the Forem app