Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //09. Triples of Latin Letters
- function triplesOfLatinLetters(numb) {
- for (let i = 0; i < numb; i++)
- for (let j = 0; j < numb; j++)
- for (let k = 0; k < numb; k++) {
- let l1 = String.fromCharCode(97 + i)
- let l2 = String.fromCharCode(97 + j)
- let l3 = String.fromCharCode(97 + k)
- console.log(`${l1}${l2}${l3}`)
- }
- }
- triplesOfLatinLetters(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement