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
KATRIN_1 [288]
2 years ago
6

Define a function Output Value() that takes two integer parameters and outputs the sum of all negative integers starting with th

e first and ending with the second parameter. If no negative integers exist, sum is 0. End with a newline. The function does not return any value. Ex: If the input is -7 1, then the output is: -28 Note: Negative numbers are less than 0.
Computers and Technology
1 answer:
hoa [83]2 years ago
4 0

The function is written in C++ programming language and is be displayed below:

long OutputVal(int start, int end) {

 long result = 1;

 for (int num = start; num <= end; num++) {

   result *= num;

 }

 return result;

}

The program defines a function Output Value(), takes two integer parameters, and outputs the sum of all negative integers starting with the first and ending with the second parameter.

Read more about C++ here:

brainly.com/question/20339175

#SPJ1

You might be interested in
Write a function index(elem, seq) that takes as inputs an element elem and a sequence seq and returns the index of the first occ
Delicious77 [7]

Answer:

def index(elem, seq):

   for i in range(len(seq)):

       if elem == seq[i]:

           return i

   

   return len(seq)

print(index(5, [4, 10, 8, 5, 3, 5]))

Explanation:

Create a function named index that takes elem and seq as parameters

Create a for loop that iterates through the seq. If elem is equal to the item in the seq, return the i, index of the item.

If the elem is not found in the seq, this means nothing will be returned in the loop, just return the length of the seq, len(seq)

Call the function with given parameters and print the result

Note: Since 5 is in the list in the example, the index of the 5 which is 3 will be returned

5 0
3 years ago
Chris needs to modify the default bullets that are used in a nonnumbered list in Word.
kotegsom [21]

Answer:

Select the arrow next to the bullet list option in the Paragraph group.

Explanation:

This allows you to decide what shape of bullets you would like to have.

Hope this helps!

Note: I personally recommend using stars :)

6 0
3 years ago
20.
SpyIntel [72]
2Na hope that helps  ^^;
6 0
3 years ago
Read 2 more answers
The helping professions all involve_____.
NARA [144]

Answer:

look that up on gogle

filler filler filler filler filler

7 0
3 years ago
What does the poster exemplify?
zloy xaker [14]

Answer:

try D

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What setting must be enabled to view data in Demographics and Interests Reports? Content Grouping Advertising features User perm
    13·1 answer
  • If you're able to understand directions more easily when you hear them instead of reading them you are most likely
    12·1 answer
  • In statistics, what is the mode of a data set?
    6·2 answers
  • Because of Moore's Law, widely-used encryption programs currently employed by banks and ecommerce sites are now easily penetrate
    11·1 answer
  • hich of the following is a disadvantage of online surveys? They result in high response bias They lead to higher cost per comple
    14·1 answer
  • How many four-digit personal identification numbers (PIN) are possible if the PIN cannot begin or end with a 0 and the PIN must
    6·1 answer
  • You load an image file into a numpy array and look at its shape, which is (433, 650). What does this indicate?
    13·1 answer
  • If you want three vertical sections of text on your page, create _____. dividers columns page breaks bulleted lists
    7·2 answers
  • Hey!! Can u help me please!!​
    12·2 answers
  • What are real online jobs any one of any age can get pays weekly by Pay<br> Pal
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!