❔ 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
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
so it will be in the case end block i think
thats fixed it
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.