borisova936935

Untitled

Nov 14th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function exam(input) {
  2.  
  3.     let maxA = Number(input[0]);
  4.     let maxB = Number(input[1]);
  5.     let maxC = Number(input[2]);
  6.  
  7.     let num1 = 0;
  8.     let num2 = 0;
  9.     let num3 = 0;
  10.  
  11.  
  12.  
  13.     for (let a = 2; a <=maxA; a +=2) {
  14.         for (let b = 2; b <= maxB; b++) {
  15.             for (let c = 2; c <= maxC; c+=2) {
  16.                 if (b === 2 || b===3 || b === 5 || b === 7) {
  17.                    
  18.                     let num1 = a;
  19.                     let num2 = b;
  20.                     let num3 = c;
  21.                     console.log("" + num1 + " " + num2 + " " + num3);
  22.                  
  23.                    
  24.                    
  25.  
  26.                    
  27.                 }
  28.  
  29.             }
  30.         }
  31.  
  32.     }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment