Next even number

Report a typo

Wow! This problem is kind of tricky. If you're ready to put your thinking cap on, brace yourself and good luck! Otherwise, you can skip it for now and return any time later

Given a natural number N, not greater than 10000. Output the even number that follows this N.

Tip: Try to write a short formula using the modulo operator %

Sample Input 1:

7

Sample Output 1:

8

Sample Input 2:

8

Sample Output 2:

10
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic