Advertisement
dabidabidesh

Untitled

May 31st, 2020
1,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //09. Triples of Latin Letters
  2. function triplesOfLatinLetters(numb) {
  3.  
  4.   for (let i = 0; i < numb; i++)
  5.     for (let j = 0; j < numb; j++)
  6.       for (let k = 0; k < numb; k++) {
  7.         let l1 = String.fromCharCode(97 + i)
  8.         let l2 = String.fromCharCode(97 + j)
  9.         let l3 = String.fromCharCode(97 + k)
  10.         console.log(`${l1}${l2}${l3}`)
  11.       }
  12. }
  13. triplesOfLatinLetters(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement