I think the line if (op = 'y') {
is the culprit.
It should be a double equals if (op == 'y') {
4
solved Why does nested if statement is not working? [closed]
I think the line if (op = 'y') {
is the culprit.
It should be a double equals if (op == 'y') {
4
solved Why does nested if statement is not working? [closed]