Computer Science, asked by preeti08081984, 3 months ago

. Write a programe to find whether the given character
is
digit , letter or a special character​

Answers

Answered by Yamini2110
1

#include <stdio.h>

int main()

{

char ch;

/* Input character from user */

printf("Enter any character: ");

scanf("%c", &ch);

/* Alphabet check */

if((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))

{

printf("'%c' is alphabet.", ch);

}

else if(ch >= '0' && ch <= '9')

{

printf("'%c' is digit.", ch);

}

else

{

printf("'%c' is special character.", ch);

}

return 0;

}

Answered by dupsdhyaya
0

Answer:

python programming bro

Similar questions