0
Why isn't my code working??
3 Answers
+ 4
On like 32
pw.at(i)==numbs[j]
you are comparing a number's ASCII value to an integer which will always equate to false.
here is the fixđ
https://code.sololearn.com/c20ipUAq5Cl5/?ref=app
+ 3
A 'char' digit is not the same as an 'int' digit.
'1' == 1 would be false because if you look at an ascii table you'll see that the integral representation for the character '1' is actually 49.
You probably want to change your numbs array to '0' to '9' instead of 0 to 9.