CCCPaste

Ex1 C Lab

#include 

int main() {
    int i = 0; // indice
    char *str = "Hello WORld! Today's temperature is 34C";

    while (*(str+i) != 0) {
        if (*(str+i) >= 97 && *(str+i) <= 122) {
            i++;
        }
        else if (*(str+i) >= 65 && *(str+i) <= 90) {
            printf("la lettera alla posizione i è maiuscola: %c\n", *(str+i));
            *(str+i) = *(str+i)+ 32;
            i++;
        } else if (*(str+i) == 32) {
            printf("è stato trovato uno spazio\n");
            i++;
        } else {
            printf("carattere sconosciuto identificato\n");
            i++;
        }
    }

    int j= 0;
    while (*(str+j)!=0) { //RIPARTIRE DA QUI
        printf("%c", *(str+j));
        j++;
    }




    return 0;
}