C
C#3y 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
TheBoxyBear3y 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
MaGiiKxOP3y ago
so it will be in the case end block i think thats fixed it
Accord
Accord3y 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.

Did you find this page helpful?