Ask coding questions

← Back to all posts
What goes wrong?
[deleted]

There is a bug on line 23, I have no idea what goes wrong.

Comments
hotnewtop
Coder100

The code is a bit inefficient. You could have just done:

JBloves27

It seems like your program is working just fine!

Kartang

you are missing a bracket at the end of line 22 and 24 that will fix the problem