Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a even number check written in pointer-ng, my own Brainfuck derivate. More information on pointer-ng here: http://esolangs.org/wiki/Pointer-ng
- Commented version:
- ++
- (Initialize_"2"_for_the_modulo_check)
- >,
- (Get_input_for_the_number_to_check)
- %
- (Calculate_modulo)
- >++++++++++++++++++++++++++++++++++++++++++++++++
- (Add_48_to_the_result_for_the_ASCII_character)
- >++++++++++++++++++++++++++++++++++++++++++++++++
- (Compare_with_48=0_as_ASCII)
- <[->-<]>>+
- (If_both_are_the_same,_print_1)
- <[->]>:
- (Print_the_value_as_int)
- Uncommented version:
- ++>,%++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++<[->-<]>>+++++++++++++++++++++++++++++++++++<[->]>:
Add Comment
Please, Sign In to add comment