Advertisement
EntropyStarRover

09. Triples of Latin Letters

May 26th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function tripleLatins(num) {
  2.  
  3.  
  4.     for (let i = 97; i < 97 + num; i++) {
  5.         for (let m = 97; m < 97 + num; m++) {
  6.             for (let n = 97; n < 97 + num; n++) {
  7.                 console.log(`${String.fromCharCode(i)}${String.fromCharCode(m)}${String.fromCharCode(n)}`);
  8.             }
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement