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
PIT_PIT [208]
3 years ago
8

Write a program that, given an integer, sums all the numbers from 1 through that integer (both inclusive). Do not include in you

r sum any of the intermediate numbers (1 and n inclusive) that are divisible by 5 or 7.
Computers and Technology
1 answer:
fgiga [73]3 years ago
5 0

Answer:

let n = 10;

let sum = 0;

for(i=1; i<=n; i++) {

if ((i%5) && (i%7)) {

 sum += i;

}

}

console.log(`Sum 1..${n} excluding 5 and 7 multiples is ${sum}`);

Explanation:

This is in javascript.

example output:

Sum 1..10 excluding 5 and 7 multiples is 33

You might be interested in
COMPUTER SCIENCE HELP!!!!!
maw [93]
1.( I need to know what program this is for to answer this one)
2.Explain a game you played for this one and include a interactive element it had like a Side-quest/Npc/Cool Background ect.
3.For 3D games you have to worry about smoothing and lighting, as for 2D you have to worry about keeping the objects within the players POV as they are usually locked to character and stuck facing one direction.
4.???(need progam name)
5.If the game is based in a snow biome you would use snow landscape textures.
8 0
4 years ago
A user informs you that he or she never deletes any files he or she creates. How might this affect the operating system? It will
Juliette [100K]

Answer:

Depending on the amount of files there are, the operating system will run slower because these files take up space on the hard drive, slowing it down.

Explanation:

6 0
3 years ago
Divide Rs60 in the ratio 1:4​
DanielleElmas [232]

Answer on the attachment

3 0
3 years ago
Discuss the limitations of computer.​
Liono4ka [1.6K]

Answer:

  • Computer System doesn't think by itself.
  • It needs continuous instructions by user.
  • It takes limited number of input at a time.
  • It cannot take its own decision.
  • It doesn't have imagination.
  • It is not creative.
8 0
3 years ago
paula needs to ensure that an animation she has created is repeated. which option should she use to achieve this ?
Masteriza [31]

Answer:

transitions tab

Explanation:

please mark brainliest

4 0
3 years ago
Other questions:
  • Before desktop computers made italic fonts available in the home and office, writers used underlining to:
    12·1 answer
  • A software programâs _________ indicates what can legally be done with that program.]
    5·1 answer
  • What is the purpose of the print area feature​
    11·1 answer
  • The PATH environment variable.
    5·1 answer
  • What can provides access to the only menu in office 2007​
    13·1 answer
  • Facial recognition software can do all of the following, except: Match photos based on facial features Generate a picture based
    10·1 answer
  • Take points for free who are new and enjoye them
    9·2 answers
  • 7.3.4: Find the Error
    7·1 answer
  • And<br>Why the computer is called dilligent<br>Versatile machine?give long answer ​
    10·1 answer
  • Consider the following method, which is intended to count the number of times the letter "A" appears in the string str.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!