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