/* * Program to convert lowercase to uppercase, as many lines as * desired. */ #include #include int main(void) { printf("enter some lines of text, control-D to end\n"); int ch; while ((ch = getchar()) != EOF) { if (islower(ch)) { putchar(toupper(ch)); } else { putchar(ch); } } printf("the end!\n");; return 0; }