How to find all lowercase characters in a string with C

1 Answer

0 votes
#include <stdio.h>

int main()
{
    char str[] = "JavaScript C C++ NodeJS";

    for (int i = 0; str[i]; i++) {
        if (str[i] >= 'a' && str[i] <= 'z')
            printf("%c ", str[i]);
            
    }

    return 0;
}




/*
run:

a v a c r i p t o d e 

*/

 



answered Apr 20, 2022 by avibootz

Related questions

1 answer 90 views
1 answer 124 views
1 answer 123 views
1 answer 137 views
1 answer 130 views
2 answers 156 views
1 answer 110 views
...