Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function magic ([arg1]){
- let n = Number(arg1);
- let num = '';
- for (let num1 = 1; num1 <= n; num1++) {
- for (let num2 = 1; num2 <= n; num2++) {
- for(let num3 = 1; num3 <= n; num3++) {
- for(let num4 = 1; num4 <= n; num4++){
- for( let num5 = 1; num5 <= n; num5++){
- for(let num6 = 1; num6 <= n; num6++){
- num = num1 * num2 * num3 * num4 * num5 * num6;
- if(num == n) {
- console.log(num1 + '' + num2 + '' + num3 + '' + num4 + '' + num5 + '' + num6);
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement