The task is as follows: Output the following even number after the current one. The numbers are integers.
Example: Input: 5, Output: 6. or Input: 6, Output: 8.
The problem is that you can not use an if construct or cycles. With a quick reflection and search for similar solutions in the search engine did not find anything useful. Tell me please, what algorithms are there?
Java language.