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
Which step do you think is most useful from big data life cycle and why?
Bess [88]

Answer:

Big data lifecycle consists of four phases: data collection, data storage, data analysis, and knowledge creation. Data collection phase consists of collecting data from different sources. In this phase, it is important to collect data from trusted data sources.

I think business cases analysis is useful step because (BCA) provides a best-value analysis that considers not only cost but other quantifiable and non-quantifiable factors supporting an investment decision. This can include but is not limited to, performance, producibility, reliability, maintainability, and supportability enhancements

Explanation:

mark me brainliest

7 0
3 years ago
Social scientists who study criminal behavior.
Sveta_85 [38]
That;d be a criminologist, wouldn't it?
5 0
3 years ago
Read 2 more answers
Match the ocean floor feature with its characteristic.
9966 [12]

Answer:

A. Rift zone - site of seafloor spreading

B. Abyssal plain - Very flat part of the ocean floor

C. Ocean Trench - Underwater volcano

D. Seamount - Near the continental margin

Explanation:

All you choices are matched with their characteristics,

The rift zone is the site of seafloor spreading. This zone is the area or boundary where land masses or tectonic plates are spreading apart. This movement results in the formation of new crust.

The abyssal plain is the flattest part of the ocean floor and it is found in the deepest parts of the oceans. They happen to be the least explored part of the ocean.

Ocean trenches are sites of convergent boundaries. These are boundaries where tectonic plates move towards each other. Sometimes when they converge, it causes the denser plate to dive under the other plate or slip under. This movements create volcanoes.

Seamounts are underwater mountains that used to be underwater volcanoes. They can come in different sizes and shaped. Like if they are smaller mountains they're called sea knolls and if they have flat tops, they are called guyots.  

4 0
3 years ago
PLEASE HELP PROGRAMMING WILL GIVE BRAINLIEST
DaniilM [7]

Answer:

1. would be B.

2. would be D

3. May I ask if it can be multiple answers?

Explanation:

1. In coding a if statement has to follow if something is true or not. If we are talking about a if and then statement it will skip that block and move to the next block of the "then" part of the "if then" Statement if the first part is reported false

2. This is a easy one, so it has to be either a 3.25 GPA or higher or they have to have either 100 hours or more.

3. waiting for a comment back :)

4 0
4 years ago
Just a smol question how do i change my username on this?
strojnjashka [21]

Answer:

If you want to change your username, you have to contact them and tell them that you want to change. That is the only way.

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • The salesperson in a cell phone store is telling me that the phone I'm considering has 8GB of memory, which means I can save 10,
    13·1 answer
  • list the network characteristics of the wireless network(s) in the decode -- SSIDs, channels used, AP names, presence of Bluetoo
    6·1 answer
  • How can ASCII be used to represent characters in a computer system?
    15·1 answer
  • Customer A with a Bronze service level package calls in a Critical System Failure at 9:00 AM. Customer B with a Silver service l
    15·1 answer
  • What are the two types of computers
    15·2 answers
  • How many bits long is a autonomous system number?
    13·1 answer
  • 50 POINTS
    6·1 answer
  • Jettison folk 2007, Magnum opus, be moving, offers poisoned commentary on the film industry.
    7·1 answer
  • Characteristics of 1st generation​ computers
    5·1 answer
  • What would be the greatest tool for emphasis? (video class)
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!