Mzsmunna
10/16/2019 - 2:09 PM

15-29750-2


#include<stdio.h>

int main()

{
    char sm;

    scanf("%c",&sm);

    if((sm>='A')&&(sm<='Z'))
    {
        printf("Upper Case Number %d and It's Lower Case is %c Number %d\n",sm,sm+32,sm+32);
    }
    else if((sm>='a')&&(sm<='z'))
    {
        printf("Lower Case Number %d and It's Upper Case is %c Number %d\n",sm,sm-32,sm-32);
    }

    else if((sm>='0')&&(sm<='9'))
    {

        if(sm=='0')
            {
                printf("No Value\n");
            }

        else
            {
                if(sm%2==0)
                {
                   printf("Even Digit\n");
                }

                else
                {
                    printf("Odd Digit\n");
                }

            }

    }
    else
    {
        printf("Symbol\n");
    }


    return 0;
}