Computer Science, asked by shohanahmedanindo90, 1 month ago

3. Write a function that will take 3 arguments minimum, maximum, and divisor. You have to find all the numbers that are divisible by the divisor where the minimum value is inclusive and the maximum value is exclusive. Add all the numbers and return the value. Sample Input Sample Output (0.10.2) 20 (3.16,3) 45

Attachments:

Answers

Answered by singhanshuman1020
0

Answer:

Python -

def myfun(min, max, div):

sum = 0

for i in range(min, max):

if i%div == 0:

sum += i

print(sum)

Like and Mark as Brainliest, it really motivates!

Similar questions