Dec-29-2020, 06:06 AM
that code will never execute, you're right, it's not needed and is worthless.
the condition of the while clause is number not = -1
so
the condition of the while clause is number not = -1
so
if number == -1
can never be satisfied.