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

#define SIZE 100

int main(void)
{
    char s[SIZE];

    printf("Enter a line of text: ");
    fgets(s, SIZE, stdin);

    printf("\nThe line in uppercase is:\n");

    for (int i = 0; s[i] != '\0'; ++i)
    {
        printf("%c", toupper((unsigned char)s[i]));
    }

    printf("\nThe line in lowercase is:\n");

    for (int i = 0; s[i] != '\0'; ++i)
    {
        printf("%c", tolower((unsigned char)s[i]));
    }

    return 0;
}