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