9 Replies
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: $debugTutorial: 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.
ok did that
it writes twice
Because you are modifying number
oh shit
You never use the
limit
eitheryeah im gonna use thatnow that this works
thanks guys
$close
If you have no further questions, please use /close to mark the forum thread as answered