MCPcopy Index your code
hub / github.com/Thillai2002/Leetcode / smallestEvenMultiple

Method smallestEvenMultiple

Smallest Even Multiple.java:2–8  ·  view source on GitHub ↗
(int n)

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