#include <stdio.h>
#include <string.h>

int main() {
    char ip[15] = "SaMsuNG Exynos";
    int len = strlen(ip);

    for (int i = 0; i < len; i++) {
        if (ip[i] >= 'A' && ip[i] <= 'Z') {//A-Z = 65-90 // a-z = 97-122
            // Convert alternate uppercase letters to lowercase
            if (i % 2 == 0) {
                ip[i] = ip[i] + ('a' - 'A');// 32 Standerd value to convert upper to lower
                //ip[i] = ip[i]] - ('a' - 'A')//32 to convert upper to lower
            }
        }
    }

    printf("Modified String: %s\n", ip);

    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: