Most Simple Logic for Smallest Even Multiple
IntuitionThe problem requires finding the smallest even multiple of n. This means we need to find the smallest number that is both a multiple of n and an even n
# Intuition
The problem requires finding the smallest even multiple of n. This means we need to find the smallest number that is both a multiple of n and an even number.
The goal is to find the smallest even multiple of n, meaning the smallest number that is divisible by both n and 2.

# Approach
The code iterates from 1 to Integer.MAX_VALUE, checking for the smallest number i that is divisible by both n and 2. Once found, it returns that number.

# Complexity
- Time complexity:
O(m/n) in the worst case, where m = Integer.MAX_VALUE. 

-  Space complexity:
O(1) since no additional data structures are used.



# Code
```java []
class Solution {
    public int smallestEvenMultiple(int n) {
        int m = Integer.MAX_VALUE;
        for(int i=1;i<=m;i++){
            if(i%n==0 && i%2==0)
            return i;
        }
        return 0;
    }
}
```
['Java']