C
C#8mo ago
stubby

✅ i feel like there is a really easy fix that i am missing

why is this returning 0?
No description
9 Replies
Angius
Angius8mo ago
I'd say try debugging See what happens to this variable Easiest way: add a Console.WriteLine(number) into the loop to see how it changes Best way: $debug
MODiX
MODiX8mo ago
Tutorial: Debug C# code and inspect data - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
stubby
stubbyOP8mo ago
ok did that it writes twice
Buddy
Buddy8mo ago
Because you are modifying number
stubby
stubbyOP8mo ago
oh shit
Angius
Angius8mo ago
You never use the limit either
stubby
stubbyOP8mo ago
yeah im gonna use thatnow that this works thanks guys
Buddy
Buddy8mo ago
$close
MODiX
MODiX8mo ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?