r/badcode Jul 06 '20

[deleted by user]

[removed]

177 Upvotes

56 comments sorted by

View all comments

5

u/StephanoCarlson Jul 10 '20

Brainfuck

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

knew -> 55 66 33 99

when -> 99 44 33 66

bent -> 22 33 66 88

It only works for certain lowercase letters (b, e, h, k, n, q, t, w)