Hi, I was thinking for a few days at a C++ problem and I couldn't solve it, I tried but I'm a begginer.
So n and k are two natural numbers with max. five numbers in them. (Example : 11111).
It will need to output the sum of N in K even numbers.
Examples:
For n = 18 and k = 3 the output will be 2+6+10=18
For n = 10 and k = 4 it will say "it's impossible)
English isn't my native language so please be kind.
Thank you!