Skip to content
Vincent Oliveira edited this page Sep 6, 2016 · 2 revisions

Write a program that outputs all possibilities to put + or - or nothing between the numbers 1, 2, ..., 9 (in this order) such that the result is always 100.

For example: 1 + 2 + 34 – 5 + 67 – 8 + 9 = 100. Formatted as "1+2+34-5+67-8+9".

Link

Clone this wiki locally