Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i;
- char x;
- scanf("%d",&n);
- for(i=1;i<=n;i++){
- getchar();
- scanf("%c",&x);
- if(x>='0' && x<='9'){
- printf("%c is a Digit\n",x);
- }
- else if(x>='A' && x<='Z'){
- printf("%c is an Alphabet\n",x);
- }
- else {
- printf("%c is a special character\n",x);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement