generate functionMon, 14 Nov 2022

replace the phrase "Luis and Eli are both cool" with the phrase "Only Eli is cool"

string Replace(string text) { string new_text = text.Replace("Luis and Eli are both cool", "Only Eli is cool"); return new_text; } string text = "Luis and Eli are both cool"; string new_text = Replace(text); Console.WriteLine(new_text);

Questions about programming?Chat with your personal AI assistant