Answers for "how to change a string into lowercase in C#"

CSS
0

how to change a string into lowercase in C#

/* Take an Input */
string str = Console.ReadLine();

/* Convert to Lower and store it in a itself
That means update the str variable and store it in itself. */
str = str.ToLower();

/* Print it. */
Console.WriteLine(str);

/* Input:-
Hello World */
/* Output:-
hello world */
Posted by: Guest on September-17-2020

Code answers related to "how to change a string into lowercase in C#"

Browse Popular Code Answers by Language