C
C#2y ago
MaGiiKx

❔ C sharp Loop

Hi, my loop is drawing one less shape than specified. I am not sure where the problem is - https://hastebin.com/umozesahel.csharp
Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
3 Replies
TheBoxyBear
TheBoxyBear2y ago
Can't find the exact spot but I suspect it's just a matter of the wrong comparison operator in a loop < 5 will run one time less than <= 5
MaGiiKx
MaGiiKxOP2y ago
so it will be in the case end block i think thats fixed it
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server