Add two values from https://en.wikipedia.org/wiki/Brainfuck#Adding_two_values ALL ABOARD chug chug END OF THE LINE Cell c0 = 2 ALL ABOARD choo END OF THE LINE ALL ABOARD chug chug chug chug chug END OF THE LINE Cell c1 = 5 ALL ABOARD tickets please END OF THE LINE Start your loops with your cell pointer on the loop counter (c1 in our case) ALL ABOARD choo choo END OF THE LINE ALL ABOARD chug END OF THE LINE Add 1 to c0 ALL ABOARD choo END OF THE LINE ALL ABOARD chugga END OF THE LINE Subtract 1 from c1 ALL ABOARD your ticket please END OF THE LINE End your loops with the cell pointer on the loop counter At this point our program has added 5 to 2 leaving 7 in c0 and 0 in c1 but we cannot output this value to the terminal since it is not ASCII encoded To display the ASCII character "7" we must add 48 to the value 7 We use a loop to compute 48 = 6 * 8 ALL ABOARD chug chug chug chug END OF THE LINE ALL ABOARD chug chug chug chug END OF THE LINE c1 = 8 and this will be our loop counter again ALL ABOARD tickets please choo choo END OF THE LINE ALL ABOARD chug chug chug END OF THE LINE ALL ABOARD chug chug chug END OF THE LINE Add 6 to c0 ALL ABOARD choo END OF THE LINE ALL ABOARD chugga END OF THE LINE Subtract 1 from c1 ALL ABOARD your ticket please choo choo END OF THE LINE ALL ABOARD click END OF THE LINE Print out c0 which has the value 55 which translates to "7"! Finally print a newline: ALL ABOARD chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga chugga click END OF THE LINE