Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cifre = [0, 4, 6, 7, 8]
- for(a = 0; a < 5; a++)
- for(b = 0; b < 5; b++)
- for(c = 0; c < 5; c++)
- for(d = 0; d < 5; d++)
- for(e = 0; e < 5; e++)
- if(a == b || a == c || a == d || a == e || b == c || b == d || b == e || c == d || c == e || d == e)
- continue;
- else
- if(cifre[a] + cifre[b] < 12) {
- console.log(cifre[a], cifre[b], cifre[c], cifre[d], cifre[e], 4)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement