Skip to content

Instantly share code, notes, and snippets.

@anilsathyan7
Created July 31, 2017 14:57
Show Gist options
  • Select an option

  • Save anilsathyan7/1680cb920e637fad039596252a28bc2e to your computer and use it in GitHub Desktop.

Select an option

Save anilsathyan7/1680cb920e637fad039596252a28bc2e to your computer and use it in GitHub Desktop.
Brainfuck check if a number is even
,.
[
[<]<+
>>[>]
,.
]
+++++ +++++
[
> +++++ +++++
< -
]
<
[--] >> +.
@yb1yb1
Copy link

yb1yb1 commented Sep 30, 2025

this gets stuck in an infinite loop on line 16 when an odd number is inputted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment