Ask Question
12 September, 02:01

count multiples (num1, num2, AND) Description: Returns the number of multiples of N that exist between num1 and num2 inclusive. Parameters: num1 (int), num2 (int), N (int). num1 and num2 can be in any order. N cannot be 0. Return value: int Examples: count multiples (2, 13, 3) → 4 count_multiples (17, - 5, 4) → 6 count_multiples (-10, - 5, - 3) → 2

+5
Answers (1)
  1. 12 September, 05:55
    0
    def count_mutiples (num1, num2, N) : #make function for call

    count=0

    if (num1>num2) : #that will check which number is low and high

    low=num2

    high=num1

    else:

    high=num2

    low=num1

    for i in range (low, high+1):

    if (i%N==0):

    count=count+1

    return (count)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “count multiples (num1, num2, AND) Description: Returns the number of multiples of N that exist between num1 and num2 inclusive. Parameters: ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers