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

3rd Apr 2020, 7:43 PM
Abdus Samad
Abdus Samad - avatar
2 Answers
+ 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'; }
3rd Apr 2020, 8:28 PM
Denise Roßberg
Denise Roßberg - avatar
0
You are putting a limit of 14 characters long in your conditions.
3rd Apr 2020, 8:32 PM
Jay W