Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char ch[100];
- int i, count = 0;
- gets(ch);
- for (i = 0; ch[i] != '\0'; i++)
- if (!(ch[i] >= 'A' && ch[i] <= 'Z') && !(ch[i] >= 'a' && ch[i] <= 'z'))
- count++;
- printf("%d", count);
- return 0;
- }
Add Comment
Please, Sign In to add comment