4 minor grammar change
source | link

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answeranswers, this assumes the IO directly inputs and outputs the number in/tofrom the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells. Add another byte if you want to do it in place.

Note: In CompressedFuck, this is only ~21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells. Add another byte if you want to do it in place.

Note: In CompressedFuck, this is only ~21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answers, this assumes the IO directly inputs and outputs the number in/from the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells. Add another byte if you want to do it in place.

Note: In CompressedFuck, this is only ~21 bytes.

3 fixed up grammer
source | link

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells. Add another byte if you want to do it in place.

Note: In CompressedFuck, this is only 21~21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells.

Note: In CompressedFuck, this is only 21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells. Add another byte if you want to do it in place.

Note: In CompressedFuck, this is only ~21 bytes.

2 fixed up grammer
source | link

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. +1Add a byte if you want to avoid negative cells.

Note: In CompressedFuck, this is only 21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. +1 byte to avoid negative cells.

Note: In CompressedFuck, this is only 21 bytes.

Brainfuck, 56 bytes

+>,[[>+>+<<-]>[-<<[->+<<+>]<[->+<]>>>]<<[-]>[->+<]>>-]<.

Like the other Brainfuck answer, this assumes the IO directly inputs and outputs the number in/to the cell and the interpreter has infinite cells and infinite cell size. Add a byte if you want to avoid negative cells.

Note: In CompressedFuck, this is only 21 bytes.

1
source | link