Need help with a program

//
Last edited on
closed account (Dy7SLyTq)
well what problem are you having?
1
2
3
if (answer != 'n' && 'N')
[..]
if (answer != 'y' && 'Y')

These lines don't do what you think.
DTSCode: Need help to know how to use temp.

Danny Toledo: Should be "if (answer != 'n' && 'N')" both places.
Still a mistake?
Last edited on
Yes:

if (answer != 'n' && answer != 'N')
Topic archived. No new replies allowed.