aiNayan

2

Feb 17th, 2021 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char ch[100];
  5. int i, count = 0;
  6. gets(ch);
  7. for (i = 0; ch[i] != '\0'; i++)
  8. if (!(ch[i] >= 'A' && ch[i] <= 'Z') && !(ch[i] >= 'a' && ch[i] <= 'z'))
  9. count++;
  10. printf("%d", count);
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment