How to find all lowercase characters in a string with C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string str = "C# C C++ Python NodeJS";
        int size = str.Length;
 
        for (int i = 0; i < size; i++) {
            if (str[i] >= 'a' && str[i] <= 'z')
                Console.Write(str[i] + " ");
        }
    }
}



/*
run:

y t h o n o d e 

*/

 



answered Apr 20, 2022 by avibootz
...