Advertisement
Spocoman

09. Triples of Latin Letters

Jan 17th, 2022
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(n) {
  2.     for(let i = 97; i < 97 + Number(n); i++){
  3.         for(let j = 97; j < 97 + Number(n); j++){
  4.             for(let k = 97; k < 97 + Number(n); k++){
  5.                 console.log(`${String.fromCharCode(i)}${String.fromCharCode(j)}${String.fromCharCode(k)}`);
  6.             }
  7.         }
  8.     }
  9. }
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement