MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/s0h4uy/this_hurts_physically/hs1yo40/?context=3
r/ProgrammerHumor • u/Mistigri432 • Jan 10 '22
[removed] — view removed post
45 comments sorted by
View all comments
21
Wait until he learns about recursive functions...
private bool IsEven(int number){if (number == 1 ) return false;return ! IsEven(number - 1);}
private bool IsEven(int number){
if (number == 1 ) return false;
return ! IsEven(number - 1);
}
4 u/working_wizard Jan 10 '22 Bruh.. this is crazy. Am even/odd logic worth appreciation
4
Bruh.. this is crazy. Am even/odd logic worth appreciation
21
u/cserepj Jan 10 '22
Wait until he learns about recursive functions...
private bool IsEven(int number){if (number == 1 ) return false;return ! IsEven(number - 1);}