1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
faust18 [17]
3 years ago
5

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23

. Write function that take a number n and return the sum of all the multiples of 3 or 5 below n.
Mathematics
1 answer:
tiny-mole [99]3 years ago
3 0

Answer:

The function is provided below.

Step-by-step explanation:

Running the program in Python, the code for this problem is as follows:

def func(n):

       count = 0                                           **initializing the sum with 0**

       for i in range (1, n):

                   if i%3 == 0 or i%5 == 0:        

                              count = count + 1

      return (count)

When the program is executed enter value 1 to 10 one by one and the result will be 23, the sum of all the multiples of 3 and 5.

You might be interested in
Using the graph below, find the point(s) such that the sum of their coordinates is equal to 7.
gregori [183]

Answer:

Only A, B and C are the points whose coordinates are equal to 7.

Step-by-step explanation:

Considering the point A

As the location of point A is (0, 7)

The sum of their coordinates is equal to 0 + 7 = 7

Considering the point B

As the location of point B is (2, 5)

The sum of their coordinates is equal to 2 + 5 = 7

Considering the point C

As the location of point C is (6, 1)

The sum of their coordinates is equal to 6 + 1 = 7

Considering the point D

As the location of point D is (4, -3)

The sum of their coordinates is equal to 4 + ( -3 ) = 1

Considering the point E

As the location of point E is (1, -6)

The sum of their coordinates is equal to 1 + ( -6 ) = -5

Considering the point F

As the location of point F is (-2, -4)

The sum of their coordinates is equal to -2 + ( -4 ) = -2 - 4 = -6

Considering the point G

As the location of point F is (-5, -2)

The sum of their coordinates is equal to -5 + ( -2 ) = -5 - 2 = -7

Considering the point H

As the location of point H is (-4, 3)

The sum of their coordinates is equal to -4 + ( 3 ) = -4 + 3 = -1

From the above discussion, only A, B and C are the points whose coordinates are equal to 7.

7 0
3 years ago
Find an order pair (x, y) that is a solution to the equation <br> -x+6y=3
Lelu [443]
One solution is the y intercept (0,1/2)
3 0
3 years ago
Help !!! Pleaseeeeeeeeee
xxTIMURxx [149]
Answer is 49
Formula is b^2-4(ac)
3^2-4(2*-5) while a=2, b=3, c=-5
9-4(2*-5)
9-4(-10)
9+40
49

Hope this helps!
8 0
3 years ago
Drag the tiles to the correct boxes to complete the pairs. Not all tiles will be used.
stepan [7]

Answer:

hola:)

Step-by-step explanation:

3 ^6= 6x6x6

4 ^5= 4x4x4x4x4

6 ^3=3x3x3x3x3x3

5 ^4= 4x4x4x4x4

8 0
3 years ago
Which subtraction expression has the difference 1 + 4
Tomtit [17]
4-1 would <span>have the difference of 1 + 4</span>
8 0
3 years ago
Read 2 more answers
Other questions:
  • PLEASE HELP!!
    7·2 answers
  • What is 2/8 times 1/7 show step by step explanation
    11·2 answers
  • your telephone bill lists a call that lasted 18 minutes and cost $1.08. how much were you charged for each minute of the call
    10·1 answer
  • -2 2/3, -5 1/3, -10 2/3, -21 1/3, -41 2/3 Which formula can be used to describe the sequence?
    9·2 answers
  • Can I get help on numbers 4,6,24, and 34 please
    6·1 answer
  • EXPLAIN PLEASE!!:)))))
    6·1 answer
  • Find a polynomial function that has the given zeros. (There are many correct answers.)<br> −4, 6
    8·1 answer
  • What do you know about Mexico? 5 sentences
    6·1 answer
  • I NEED HELP ASAP PLEASE
    14·1 answer
  • What is the first step
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!