8 kyu
Get Nth Even Number
10,741 of 37,678kodejuice
Description:
Return the Nth Even Number
Example(Input --> Output)
1 --> 0 (the first even number is 0)
3 --> 4 (the 3rd even number is 4 (0, 2, 4))
100 --> 198
1298734 --> 2597466
The input will not be 0.
Mathematics
Puzzles
Algorithms
Similar Kata:
Stats:
Created | Jun 4, 2017 |
Published | Jun 5, 2017 |
Warriors Trained | 48331 |
Total Skips | 642 |
Total Code Submissions | 67876 |
Total Times Completed | 37678 |
JavaScript Completions | 10741 |
Crystal Completions | 70 |
Python Completions | 10040 |
Ruby Completions | 850 |
Java Completions | 4193 |
C Completions | 1413 |
BF Completions | 224 |
C# Completions | 1952 |
Rust Completions | 748 |
NASM Completions | 64 |
C++ Completions | 5276 |
TypeScript Completions | 441 |
CoffeeScript Completions | 54 |
Elixir Completions | 127 |
Julia Completions | 69 |
Dart Completions | 526 |
PHP Completions | 763 |
Reason Completions | 27 |
Haskell Completions | 269 |
Racket Completions | 49 |
R Completions | 164 |
Factor Completions | 28 |
PureScript Completions | 34 |
Go Completions | 960 |
Clojure Completions | 166 |
Forth Completions | 75 |
Elm Completions | 75 |
Swift Completions | 796 |
COBOL Completions | 25 |
OCaml Completions | 53 |
Lua Completions | 96 |
Scala Completions | 58 |
SQL Completions | 814 |
D Completions | 24 |
Total Stars | 297 |
% of votes with a positive feedback rating | 88% of 3952 |
Total "Very Satisfied" Votes | 3168 |
Total "Somewhat Satisfied" Votes | 623 |
Total "Not Satisfied" Votes | 161 |
Total Rank Assessments | 111 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |