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
Write a polynomial in standard form that is a degree of 3, has zeros -1, 2i, and P(0)=8
marin [14]

Is your question written correctly? Just making sure.

4 0
4 years ago
Frank, Leah and Tom play a trivia game. Frank's score is -12 points. Leah's score is 48 points higher than Frank's score. Tom's
sasho [114]

Answer:

- 40

Step-by-step explanation:

-12 + 48 = -60          60 th 2/3 is -40

5 0
3 years ago
Explain how you can tell the frequency of a data value by looking at the dot plot
aleksandrvk [35]
By the size of the cluster for the value.
6 0
3 years ago
Monica can walk 3.8 kilometers in 40 minutes, and she can jog twice that distance in the same amount of time. How far could Moni
Elanso [62]
We know that
<span>Monica can walk 3.8 kilometers in 40 minutes
and
</span><span>she can jog twice that distance in the same amount of time
that means
in 40 minutes Monica can jog (3.8 km*2)-----> 7.6 km

1 hour=60 minutes
</span>by proportion<span>
7.6 km/40 minutes=x km/60 minutes
x=7.6*60/40----> x=11.4 km

the answer is
11.4 km</span>
5 0
3 years ago
What is the expanded form of 5(3m + 7)?
aleksley [76]

Answer:  the  answer  is  15m  +  35

Step-by-step explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • A home’s value increases at an average rate of 5.5% each year. The current value is $120,000. What function can be used to find
    12·1 answer
  • A circle passes through point (−2, −1) and its center is at (2, −1). Which equation represents the circle?
    11·1 answer
  • Is -5.1 greater than -4?
    10·2 answers
  • 12.) At a bowling alley, there is a $5.00 fee for renting shoes. It costs $1.25 for each game bowled. If you have $10 have many
    5·1 answer
  • Solve for the value of t.<br><br> please help
    9·1 answer
  • What is the resulting cross section if the cheesecake was sliced parallel to its points?
    9·1 answer
  • 22 ounces =<br> how many pounds
    9·1 answer
  • Suppose we want to choose 5 objects, without replacement, from 15 distinct objects.
    8·1 answer
  • Giving the figure below, what is the measure of angle JKL
    14·1 answer
  • 95 = e + 36 what’s the answer
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!