SaveText.Ru

Без имени
  1.         if(from == 10){
  2.         var num = "";
  3.         while(number >= to){
  4.         //console.log(1, num, " ", number)     
  5.                 num += String(number % to)
  6.         number = Math.floor(number / to);
  7.       //console.log(2, num, " ", number)
  8.       if(number < to) num += number % to
  9.     }
  10.     var outputNum = [];
  11.     let k = 0;
  12.     for(let i = num.length - 1; i >= 0; i--){
  13.         outputNum[k] = num[i]
  14.       k++;
  15.     }
  16.     outputNum = outputNum.join('')
  17.   }

Share with your friends:

Print