r/ProgrammerHumor • u/themightydud • Oct 26 '21
GitHub Copilot, the technology that will replace programmers. Also GitHub Copilot...
27k
Upvotes
r/ProgrammerHumor • u/themightydud • Oct 26 '21
View all comments
Show parent comment
1
u/_JJCUBER_ Oct 26 '21
This will instantly return for num != 0 and will go in an infinite loop for num == 0. Not sure if this was your intent (single = vs double in the if statement), though I assume not? Unless you’re using some weird language where = both assigns and checks for inequality.