Ledger Nano X - The secure hardware wallet
SHARE
TWEET

04.Gift- final_exam_29.02.2020

vborislavova Mar 28th, 2020 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function GiftFromSanta(input) {
  2.     let n = Math.abs(Number(input.shift()));
  3.     let m = Math.abs(Number(input.shift()));
  4.     let s = Math.abs(Number(input.shift()));
  5.    
  6.    
  7.     for (let i = m; i >= n; i--)
  8.     {
  9.        
  10.         if (i % 2 == 0 && i % 3 == 0)
  11.         {
  12.             if (i == s)
  13.             {
  14.                 return;
  15.             }
  16.             process.stdout.write(`${i} `);
  17.         }
  18.    
  19.     }
  20.  
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top