#include <stdio.h>
#include <string.h>
#include <ctype.h>
int validade(char *S) {
if (tamanho <= 6 || tamanho >= 32) return 0;
int maiuscula = 0, minuscula = 0, numero = 0;
for (int i = 0; i < tamanho - 1; i++) {
else if(isupper(S
[i
])) minuscula
= 1; else return 0;
}
return maiuscula * minuscula * numero;
}
int main() {
char S[40];
printf(validade
(S
) ? "Senha valida.\n" : "Senha invalida.\n"); }
//https://pt.stackoverflow.com/q/240042/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPGN0eXBlLmg+CgppbnQgdmFsaWRhZGUoY2hhciAqUykgewogICAgaW50IHRhbWFuaG8gPSBzdHJsZW4oUyk7CiAgICBpZiAodGFtYW5obyA8PSA2IHx8IHRhbWFuaG8gPj0gMzIpIHJldHVybiAwOwogICAgaW50IG1haXVzY3VsYSA9IDAsIG1pbnVzY3VsYSA9IDAsIG51bWVybyA9IDA7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHRhbWFuaG8gLSAxOyBpKyspIHsKICAgICAgICBpZiAoaXNsb3dlcihTW2ldKSkgbWFpdXNjdWxhID0gMTsKICAgICAgICBlbHNlIGlmKGlzdXBwZXIoU1tpXSkpIG1pbnVzY3VsYSA9IDE7CiAgICAgICAgZWxzZSBpZihpc2RpZ2l0KFNbaV0pKSBudW1lcm8gPSAxOwogICAgICAgIGVsc2UgcmV0dXJuIDA7CiAgICB9CiAgICByZXR1cm4gbWFpdXNjdWxhICogbWludXNjdWxhICogbnVtZXJvOwp9CgppbnQgbWFpbigpIHsKICAgIGNoYXIgU1s0MF07CiAgICBmZ2V0cyhTLCA0MCwgc3RkaW4pOwogICAgcHJpbnRmKHZhbGlkYWRlKFMpID8gIlNlbmhhIHZhbGlkYS5cbiIgOiAiU2VuaGEgaW52YWxpZGEuXG4iKTsKfQoKCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI0MDA0Mi8xMDE=