Quote:
while(finishChoice != 'y' || finishChoice != 'Y')
You are looping while the
finishChoice
variable is set to anything other than
'y'
,
OR set to anything other than
'Y'
.
Think about that for a moment: if it's
'y'
, then it's not
'Y'
, so you loop. If it's
'Y'
, then it's not
'y'
, so you loop.
The only time you exit your loop is if the variable is equal to both
y
and
Y
at the same time.
Since you're not using a quantum computer, that condition is impossible to satisfy. So you always loop.
Replace
||
with
&&
and you might have better luck.