Brainfuck Contest 1

From Esolang
Jump to navigation Jump to search

Welcome to my test contest!

Rule

This is a golf contest. Anyone with the shortest code wins.

Addition program

Indeed, we have to test it. If you have an answer, just go for it. Edit it.

Input

Number.(2 one-digit numbers)

Output

Number added (digital root, or mod 9)

Example Input

45

Example Output

9

Your Code Goes Here:

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

Code that actually works as required

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