fix: fixed issue with number with three digits featuring 11 or 12
This commit is contained in:
parent
3b531d11c5
commit
3f979f143f
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -52,7 +52,7 @@ int main()
|
||||||
}
|
}
|
||||||
result.push_back(suffix);
|
result.push_back(suffix);
|
||||||
|
|
||||||
if (input_length > 1 && (middle_digit < 11 || middle_digit > 12))
|
if (input_length > 1 && (last_two_digits < 11 || last_two_digits > 12))
|
||||||
result.push_back(middle_digit_strings[middle_digit]);
|
result.push_back(middle_digit_strings[middle_digit]);
|
||||||
else
|
else
|
||||||
result.push_back("");
|
result.push_back("");
|
||||||
|
|
Loading…
Reference in a new issue