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
KengaRu [80]
3 years ago
14

The function below takes one parameter: an integer (begin). Complete the function so that it prints the numbers starting at begi

n down to 1, each on a separate line. There are two recommended approaches for this: (1) use a for loop over a range statement with a negative step value, or (2) use a while loop, printing and decrementing the value each time.
Computers and Technology
1 answer:
arlik [135]3 years ago
8 0

Answer:

Program is in C++

Explanation:

C++ Code

1) By using For Loop

void forLoopFunction(int value){

for(int start=value; start>0; start--){

 cout<<start<<endl;

}

}

Explanation

Start for loop by assigning the loop variable to parameter value and condition will be that loop variable will be greater then 0 and at the end decrements the loop variable.

2) By usin WhileLoop

void whileLoopFunction(int value){

 while(value>0){

 cout<<value<<endl;

 value--;

 }

}

Explanation

In while loop first add the condition as variable must be greater then 0 and then print the value with endl sign to send the cursor to next line and at the end of the loop decrements the variable.

You might be interested in
Which of the following best describes a balanced reaction
Ghella [55]

Answer:c

Explanation:

just took the test

7 0
2 years ago
Select the correct answer.
Andru [333]

Answer:

OD Check for Internet issues

5 0
3 years ago
A company set up controls to allow only a specific set of software and tools to install on workstations. A user navigates to a s
Jlenok [28]

Answer:

Whitelisting

Explanation:

What is Whitelisting

Application whitelisting specifies a list of application that are allowed to run, but no others are.

4 0
3 years ago
Write a statement that declares a prototype for a function printArray, which has two parameters. The first parameter is an array
slamgirl [31]

Answer:

The prototype for the function is written below:-

void printArray(int [],int);

Explanation:

The prototype of the function is written above.Since the function does not return a value so it has to be of type void.Then following is the name of the function.Following that the arguments in the parenthesis.We need not to provide the name of the arguments we just have to define it's type.So for the array we have to just write int [] and for integer variable just int.

8 0
3 years ago
When can screentips be useful? when finding a tab when looking for a command when pinning the ribbon when using a command.
Anettt [7]

Screentips be useful when looking for a command.

<h3>What are Screentips?</h3>

These are referred to small windows which displays descriptive text when the pointer is rested on a command and it is usually done using the mouse.

Screentips is therefore useful when an individual is looking for a command as a result of the information derived from the descriptive texts.

Read more about Screentips here brainly.com/question/18955460

6 0
3 years ago
Other questions:
  • How to double print ona printer that doesnt allow t
    11·1 answer
  • What are three ways you cite evedince
    5·2 answers
  • How do i get more coding programs
    14·2 answers
  • Clicking this would navigate among different worksheets
    14·1 answer
  • Which statement does NOT describe working with text in presentation programs?
    13·2 answers
  • Explain the following as used in Tally Accounting Software:
    8·1 answer
  • When an instruction is sent to the CPU in a binary pattern, how does the CPU know what instruction the pattern means
    7·1 answer
  • List how much hard disk capacity you recommend, and write a sentence explaining why.
    8·1 answer
  • For each situation, provide a pseudocoded algorithm that would accomplish the task. Make sure to indent where appropriate.Situat
    10·1 answer
  • Two character strings may have many common substrings. Substrings are required to be contiguous in the original string. For exam
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!