Files
30-seconds-of-code/snippets/arithmetic_progression.md
Animesh 10fd98764e Updated the indent to 2 spaced
Updated everything according to the comments
2020-07-28 16:29:25 +05:30

18 lines
315 B
Markdown

---
title: arithmetic_progression
tags: math, beginner
---
Find all the multiples between a number and a limit.
Use the `range` function and step up the same integer to find multiples.
```py
def find_multiples(integer, limit):
return list(range(integer,limit+1, integer))
```
```py
find_multiples(5,25)
```