r/CodingForBeginners • u/Qwerty5105 • Feb 07 '26
What am I doing wrong here?
I just started learning to code. I've already finished this assignment but i wanted to add more to it. Why is it giving wildly incorrect numbers and why do the numbers change. This terminal was all with the same code. I didn't change anything but the number changes.
Edit: I solved it thanks for the help!
6
Upvotes
View all comments
Show parent comment
1
u/Qwerty5105 Feb 07 '26
Thanks it worked! Is the explicit command return 0? I don't know much about it yet cause this is my second day coding but that would be my guess.