MCPcopy Create free account
hub / github.com/Thillai2002/Leetcode / Solution

Class Solution

Smallest Even Multiple.java:1–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Solution {
2 public int smallestEvenMultiple(int n) {
3 if(n%2==0)
4 {
5 return n;
6 }
7 return n*2;
8 }
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected