Here's a code golf challenge to poke ya'll brains a little. The goal is to write the smallest program possible that accomplishes the goal. There's no prize; it's just a fun exercise!
Write a program that adds two integers together without the use of +, -, sum, or cumSum.
- The program may not use the + or - operators.
- The program may not use the sum command or cumSum command.
- Assume the first line of your program is :Prompt A,B
- A and B are both integers whose absolute values are no more than 99
- You may assume A and B are strictly positive
For a bonus challenge, try writing the same program, except this time A and B are not restricted to the set of positive integers, meaning negative values are allowed.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me