#include <stdio.h>

int main() {

    char c; 
    printf("Introduce un caracter: \n");
    scanf("%c",&c);

    if (c>= 'A' && c<= 'Z')
    {
        printf("El caracter %c es una letra mayúscula \n",c);
    }
    else if (c>='a' && c<='z') 
    {
        printf("El caracter %c es una letra minúscula \n",c);
    }
    else if (c>='0' && c<='9')
    {
        printf("El caracter %c es un número \n",c);
    }
    else
    {
        printf("El caracter %c es un símbolo \n",c);
    }

    printf("Caracter: %c -> Codigo ASCII: %d\n", c, c);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: