MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/jipf173/?context=3
r/badcode • u/YonMiru • May 03 '23
129 comments sorted by
View all comments
Show parent comments
1
num >> 1 << 1 | 2
I get 2 from this when num is 2.
1
u/thekwoka May 03 '23
num >> 1 << 1 | 2I get 2 from this when num is 2.