About 69,500 results
Open links in new tab
  1. math - finding multiples of a number in Python - Stack Overflow

    Jan 28, 2013 · 1 If this is what you are looking for - To find all the multiples between a given number and a limit

  2. C# How to determine if a number is a multiple of another?

    I don't get that part about the string stuff, but why don't you use the modulo operator (%) to check if a number is dividable by another? If a number is dividable by another, the other is automatically a …

  3. Javascript function for finding multiples of a number

    4 Create a function called multiplesOf. It will accept two arguments, the first will be an array of numbers, the second will be a number. The function should return a new array that is made up of every …

  4. Find the number of multiples for a number in range

    The idea is to use the arithmetic sequence here. If we have first divisible number (>= A) and last divisible number (<= B) we have an arithmetic sequence with distance K. Now all we have to do is find the …

  5. c++ - Finding multiples of integers quickly - Stack Overflow

    Mar 29, 2012 · Your output will have duplicates when the number contains multiples of 3 and 5, e.g. 15, 30. Some of the suggestions use multiplication or mod (%) which are quite slow, but there's a much …

  6. python - Create a list of multiples of a number - Stack Overflow

    List of Multiples Create a Python 3 function that takes two numbers (value, length) as arguments and returns a list of multiples of value until the size of the list reaches length.

  7. How to find multiples of a number in a range without loop?

    Oct 1, 2021 · a=10,b=20,c=3 for example I need program to find how many multiples do c=3 have that are between a,b or b,a? how to make that program without using loop? in this example with this input …

  8. how to determine the multiples of numbers in java

    Oct 10, 2010 · A number x is a multiple of y if and only if the reminder after dividing x with y is 0. In Java the modulus operator (%) is used to get the reminder after the division.

  9. Java, Check if integer is multiple of a number - Stack Overflow

    Aug 2, 2013 · How do I check if a Java integer is a multiple of another number? For example, if int j is a multiple of 4.

  10. Fast way to find the next multiple of a number - Stack Overflow

    I need to find the first multiple for a number starting from a base number. For example: The first multiple of 3 from 7 is 9. My first attempt was to do this: multiple = baseNumber while (multiple%...