0
My password validation(code coach) code passes 8 tests but fails 5.i dont kbow the cause pls help me
https://www.sololearn.com/coach/76?ref=app https://code.sololearn.com/c1G2tq58bcFH/?ref=app
2 Réponses
+ 1
The length of the string have to be at least 7.
Count the numbers: at least 2
Count the special signs: at least 2
if(sc >= 2 && num >= 2 && len >= 7){
cout << "Strong";
}else{
cout << "Weak';
}
0
You are putting a limit of 14 characters long in your conditions.