About 50 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. Finding the multiples of 3 in a given range - Stack Overflow

    Mar 28, 2022 · I wrote a code that can find the multiples of 3 of a given number, but I want to make it so that it will only print out the multiples of 3 in a given range. How can I do that?

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

    Jan 22, 2015 · 0 I'm relatively new to python and thus trying to set myself up running some simple algorithms. Here's the first problem from project euler, although there are other solutions available to …

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

    Jan 28, 2013 · 0 How to calculate the first n multiples of a given number x, in the compact python's lambda notation

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

    2 The problem with your first solution is that it double-counts multiples of 15 (because they are multiples of both 3 and 5). The problem with your second solution is that it doesn't count 999 (a multiple of 3). …

  6. C Program that prints Multiples of 3, 5 and both, professional style ...

    Sep 29, 2020 · I wrote my first simple C program that prints multiples of 3 , 5 and both 3 and 5 instead of the number, from 1 to 100. It works. I know this program can be written in million different ways. How …

  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. Project Euler - 1: Finding multiples of 3 and 5 [duplicate]

    Project Euler - Problem 1: Find the sum of all the multiples of 3 or 5 below 1000. Looking through the questions here about the same problem I assume the way I tried to solve is is quite bad.

  9. How can I use a counting loop to calculate multiples of a number?

    Feb 17, 2021 · 1 I am working on some homework and my task is to write a program in C that uses a loop that counts from 1 to 10 and use the counter of that loop to calculate the multiples up to 5. I …

  10. How can I print all the multiples of 5 from 5 to 1,000,000

    Nov 26, 2018 · New to Python and having a hard time creating a for loop or while loop that'll give me an output of 5, 10 ,15, 20, ... all the way to 1,000,000.