Guest User

Untitled

a guest
Oct 27th, 2015
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #include <stdlib.h>
  4.  
  5. #include <string.h>
  6.  
  7. #include <stdbool.h>
  8. int main() {
  9.  
  10. char string[18];
  11. bool z = 1;
  12. scanf("%s", &string);
  13.  
  14. int b = strlen(string);
  15.  
  16. if (6<=b && b<=18) {
  17.  
  18. for
  19. (int i=0;i<b;i++) {
  20. char a = string[i];
  21. if ( isdigit(a) && islower(a) && isupper(a) ) { z=1; }
  22.  
  23. };
  24. } else { z=0; };
  25. if (z) { printf("YES"); } else { printf("NO"); };
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment