Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Find Multiples of a Number

function findMultiples(integer, limit) {
   
    let arr = []


    
   for(let i =1; i<=limit ;i++){
      let m = i*integer;
      if(m<=limit){
          arr.push(m)
      }
   }
   return arr 

    
    
  }
 
PREVIOUS NEXT
Tagged: #Find #Multiples #Number
ADD COMMENT
Topic
Name
6+9 =