Why is the out put messed up


please explain how to fix

thought its supposed to say 1000, instead of code 0

Do you see anything in the Terminal tab? I am not sure what we are supposed to expect in the Output tab. How are you running the code? Are you using the code runner extension or the built-in runner (play button in the top right)?

I think you may need to save the file first

1 Like

code runner is what im using

What @keelo said sounds right. You need to save the file. Otherwise it is probably running an empty file (which would have no output). You can tell you need to save by the dot up in the file name.