Smallest Even Multiple - Practice Coding | SlaveCode
Problems
Scratchpad
Run
Submit
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
:
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
Toggle theme (Current: Custom)
Scratchpad
Run
Submit
Description
Hints
Solutions
2413. Smallest Even Multiple
Easy
10 Points
Math
Number Theory
Examples
Example 1
Input: n = 5 Output: 10 Explanation: The smallest multiple of both 5 and 2 is 10.
Example 2
Input: n = 6 Output: 6 Explanation: The smallest multiple of both 6 and 2 is 6. Note that a number is a multiple of itself.
Constraints
1 <= n <= 150
JAVASCRIPT
Code
Tests
Result
Description
Hints
Solutions
2413. Smallest Even Multiple
Easy
10 Points
Math
Number Theory
Examples
Example 1
Input: n = 5 Output: 10 Explanation: The smallest multiple of both 5 and 2 is 10.
Example 2
Input: n = 6 Output: 6 Explanation: The smallest multiple of both 6 and 2 is 6. Note that a number is a multiple of itself.
Constraints
1 <= n <= 150
JAVASCRIPT
Code
Tests
Result