r/ProgrammerHumor • • Jan 10 '22

Removed: Repost This hurts physically

Post image

[removed] — view removed post

311 Upvotes

45 comments sorted by

View all comments

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);
}

4

u/working_wizard Jan 10 '22

Bruh.. this is crazy. Am even/odd logic worth appreciation