Advertisement
Raddia_Akter_Hride

problem_4

May 26th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     char ch;
  5.     scanf("%c", &ch);
  6.         if((ch>='a' && ch<='z') || (ch>='A' && ch<='Z'))
  7.             printf("Alphabet\n");
  8.         else if(ch>='0' && ch<='9')
  9.             printf("Digit\n");
  10.         else
  11.             printf("Special character\n");
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement