About 51 results
Open links in new tab
  1. 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.

  2. math - finding multiples of a number in Python - Stack Overflow

    Jan 28, 2013 · 4 Based on mathematical concepts, I understand that: all natural numbers that, divided by n, having 0 as remainder, are all multiples of n Therefore, the following calculation also applies as …

  3. Determining multiples of 3 or 5 in python - Stack Overflow

    Jan 22, 2015 · Determining multiples of 3 or 5 in python Asked 11 years, 9 months ago Modified 3 years, 11 months ago Viewed 36k times

  4. How to make a script that prints the multiples of a number using a for ...

    Jun 10, 2020 · The multiples of number is when you add that number to it self multiple times. range () generates a sequence of integer numbers. It can take one, two, or three parameters:

  5. java - Count Multiples - Stack Overflow

    Mar 6, 2021 · I have been assigned to write a java program for class that counts multiples. The program takes three integers as input: low, high, x. The program then outputs the number of multiples of x …

  6. Print in scientific format with powers of ten being only multiples of 3

    I haven't found a way to only get exponents which are multiples of 3, when displaying numbers in the scientific format. Neither did I succeed writing a simple custom formatting function. Here is a ...

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

    Oct 1, 2021 · 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 program must …

  8. python - Multiples of 10 in a list - Stack Overflow

    Mar 31, 2022 · I am currently doing an assignment in my intro level CS class and just need a smidge of help. They are asking me to write a program that reads a list of integers and determines if it has; …

  9. algorithm - How to find the sum of all the multiples of 3 or 5 below ...

    How to find the sum of all the multiples of 3 or 5 below 1000 in Python? Asked 14 years, 11 months ago Modified 1 year, 9 months ago Viewed 86k times

  10. how to determine the multiples of numbers in java

    Oct 10, 2010 · A number is a multiple of if and only if the reminder after dividing with is . In Java the modulus operator () is used to get the reminder after the division. So gives the reminder when is …