#include #include #include #include static int fin_de_phrase(int c); int main(void) { int c; int debut_phrase = 1; setlocale(LC_CTYPE, ""); while ((c = getchar()) != EOF) { if (debut_phrase) { putchar(toupper(c)); debut_phrase = !isalpha(c); } else { putchar(tolower(c)); debut_phrase = fin_de_phrase(c); } } return EXIT_SUCCESS; } static int fin_de_phrase(int c) { return c == '.' || c == '?' || c == '!'; }