Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function uniquePINCodes(input) {
- for (let i = 2; i <= Number(input[0]); i += 2) {
- for (let j = 2; j <= Number(input[1]); j++) {
- if (j === 2 || j === 3 || j === 5 || j === 7) {
- for (let k = 2; k <= Number(input[2]); k++) {
- if (k === 2 || k === 4 || k === 6 || k === 8) {
- console.log(`${i} ${j} ${k}`);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement