Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <stdbool.h>
- int main() {
- char string[18];
- bool z = 1;
- scanf("%s", &string);
- int b = strlen(string);
- if (6<=b && b<=18) {
- for
- (int i=0;i<b;i++) {
- char a = string[i];
- if ( isdigit(a) && islower(a) && isupper(a) ) { z=1; }
- };
- } else { z=0; };
- if (z) { printf("YES"); } else { printf("NO"); };
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment