#include <stdio.h>
#include <ctype.h>

int main(void) {
    char s[100];
    printf("Enter a line of text: ");
    fgets(s, sizeof(s), stdin);

    printf("\nUppercase: ");
    for (int i = 0; s[i] != '\0'; i++) {
        putchar(toupper((unsigned char)s[i]));
    }

    printf("Lowercase: ");
    for (int i = 0; s[i] != '\0'; i++) {
        putchar(tolower((unsigned char)s[i]));
    }

    return 0;
}