Answer:
There is only one modification in the above loop i.e. while loop should be like this--
while (i != n)
{
sum+=arr[i]; // Line 1, In question segment it is line 2.
i++; // Line 2, In question segment it is line 1.
}
Output:
Now if the array input is 1,2,3,4,5 then the output is 15.
Explanation:
In the above question, all the line of the segment is right except the body of the loop because--
- The First line of the loop is increment statement which increments the value of "i" variable from 1 and the value of "i" variable will be 1 in the first iteration of the loop
- The second line starts to add the value from 1'st index position of the array. Hence the segment gives the wrong answer. It adds the arr[1] to arr[n-1].
- So I interchanged both lines of the while loop as shown in the answer part. I make the line 1 (In question segment) as line 2(In answer part) and line 2 (In question segment) as line 1 (In answer part).
Now It gives the correct output because it can add arr[0] to arr[n-1].
- <u>False:</u> Location of a video or photoshoot is not important when it comes to preplanning the shoot.
- <u>True:</u> Booms are large adjustable poles to mount microphones.
- <u>False:</u> It doesn't matter what you clean your camera lens with- you should just grab whatever cloth you have.
- <u>True:</u> Safety should be the most important thing when conducting a photo or video shoot.
- <u>True:</u> It's important to properly clean and store your equipment after a photo or video shoot.
<h3>What is a
photoshoot?</h3>
A photoshoot can be defined as a photography session that involves the use of <u>digital media</u> equipment to take series of pictures (photographs) of models, things or places, etc., especially by a professional photographers.
<h3>The digital media equipment in a photo or
video shoot.</h3>
Some examples of the <u>digital media</u> equipment that are used in a photo or video shoot include the following:
Read more on photoshoot here: brainly.com/question/26643795
Answer:
G m a i l
Explanation:
G m a i l by Google is the main commercial email provider to Android Phones. This is because it offers so many features that other email provider do not. One of this is the ability to backup your data, including contacts, messages, and others. This features along with other features makes Google g m a i l account the best option for Android users.
Document design techniques that make
your document easier for readers to skim and therefore gives your writing
"High Skim Value" is true. The answer is letter A. Documents that
give you a high skim value are the headings and subheadings, white space and
the toposgraphy.