C
C#7mo 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
Angius7mo 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
MODiX7mo 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
stubbyOP7mo ago
ok did that it writes twice
Buddy
Buddy7mo ago
Because you are modifying number
stubby
stubbyOP7mo ago
oh shit
Angius
Angius7mo ago
You never use the limit either
stubby
stubbyOP7mo ago
yeah im gonna use thatnow that this works thanks guys
Buddy
Buddy7mo ago
$close
MODiX
MODiX7mo 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