C
C#3w 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
Angius3w 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
MODiX3w 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
stubby3w ago
ok did that it writes twice
Buddy
Buddy3w ago
Because you are modifying number
stubby
stubby3w ago
oh shit
Angius
Angius3w ago
You never use the limit either
stubby
stubby3w ago
yeah im gonna use thatnow that this works thanks guys
Buddy
Buddy3w ago
$close
MODiX
MODiX3w ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server
More Posts