+ 2
OMG! IS THIS AN ERROR?
Run this code and see the magic!
6 Antworten
+ 2
You did not initialize variable 'b', so it contains some random value in your loop.
You then multiply 'a' with this random value, which is the reason for your "strange" results.
+ 6
https://code.sololearn.com/cJitg44awuJK/?ref=app
Check this out. Maybe my explanations or the code will help with your understanding.
+ 1
but how did that random value come?
+ 1
ok thanks both... I still cant understand lol