looking at the code it looks fine.
is it possible that this code is different from the one you run, e.g. you made changes and didn't save it (no auto save), or having 2 files and you running different one than you think?
is it possible that this code is different from the one you run, e.g. you made changes and didn't save it (no auto save), or having 2 files and you running different one than you think?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs