krapppyyy krapppyyy
  • 06-08-2021
  • Computers and Technology
contestada

Write a python program to calculate the sum of numbers from 1 to 20 which is divisible by 3.

Respuesta :

adollbathchinemerem
adollbathchinemerem adollbathchinemerem
  • 06-08-2021

Answer:

Input : N = 5

Output : 7

sum = 3 + 4

Input : N = 12

Output : 42

sum = 3 + 4 + 6 + 8 + 9 + 12

Answer Link
Whyamicrazy77
Whyamicrazy77 Whyamicrazy77
  • 06-08-2021

Answer:Input : n = 2, number = 7

Output : 728

There are nine n digit numbers that

are divisible by 7. Numbers are 14+  

21 + 28 + 35 + 42 + 49 + .... + 97.

Input : n = 3, number = 7

Output : 70336

Input : n = 3, number = 4

Output : 124200

Explanation:

Answer Link

Otras preguntas

which term most accurately describes earth overall climate ?
How did the Atlantic slave trade benefit the Africans?
Ben and ____ won first place! him himself he
ten runners joine a race .in how many possible ways can they be arranged as first devond and third placers?
Where are these produce
The term “fantasia” has been used to describe which part of the sonata form? Development Recapitulation Ospedale Exposition
How does the "elastic clause" make it easier for our government to function?
what is one of the advantages of the globalization
What might be the cargo of a ship moving from New England to West Africa in the trans-Atlantic slave trade? Cloth Guns Molasses Rum
When different parts of an organism work together in unison, things can be accomplished that could not happen otherwise.” Explain this statement, using the inte