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
weqwewe [10]
4 years ago
9

Modify the countUp( ) you wrote in the previous question to countUp( num), where num is a parameter. The function displays from

1 to num.
Computers and Technology
1 answer:
algol [13]4 years ago
4 0

Answer:

void countUp(int num)

{

   if(num==0) //base case.

   return;

   countUp(num-1);//Recursive call.

   cout<<num<<" "; //printing the number.

}

for input num=25

Output:-1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

Explanation:

I have used recursion to print the numbers the function is in c++ language.In every recursive call we are decreasing num by 1.As the base case is reached.Then it will backtrack from 1 to num and then we are printing while backtracking.

You might be interested in
Hey guys, quick question:<br><br> What are the positives and negative’s of GUI’s??
-Dominant- [34]

Answer:

Advantages Disadvantages

It is easy to explore and find your way around the system using a WIMP/ GUI interface They need significantly more memory (RAM) to run than other interface types

You do not have to learn complicated commands They use more processing power than other types of interface

Explanation:

4 0
3 years ago
Read 2 more answers
Where Go to set up margins on a letter
nika2105 [10]

Answer:

Side, top and bottom margins should be 1 to 1 1/4 inches (the general default settings in programs such as Microsoft Word). One-page letters and memos should be vertically centered.

6 0
4 years ago
When the atmosphere has too much carbon dioxide in it, the oceans absorb some of it to achieve a new balance. This is an example
horsena [70]
The answer is B. 
A geochemical cycle. 
8 0
4 years ago
Read 2 more answers
____________ approach involves trying every possible key until an intelligible translation of the ciphertext into plaintext is o
Vitek1552 [10]

Answer:

Symmetric encryption or single key encryption

8 0
3 years ago
A(n) _____ allows individuals to create and publish a profile, create a list of other users with whom they share a connection (o
Mice21 [21]

Answer:

Social Networks

Explanation:

Social Network provides a way for users to create a profile, create a list of other users whom they share a connection with. This allows users to connect with other users who share similar interests with them. Businesses can also leverage the power of the social network to boost their sales and gain more reach and visibility.

4 0
3 years ago
Other questions:
  • You need to control the number of people who can be in an oyster bar at the same time. Groups of people can always leave the bar
    12·1 answer
  • Where is the cell membrane located in cell that do not have cell wall
    7·2 answers
  • When studying an information system, illustrations of actual documents should be collected using a process called _____.
    12·1 answer
  • The chain of command is an unbroken line of authority that extends from the top of the organization to the lowest echelon and cl
    7·1 answer
  • How to import any csv from internet in phyton 3 and R ?
    12·1 answer
  • In a rear-wheel drive (RWD) system, the rear axle _______ the vehicle.
    11·1 answer
  • How do you recognize the brand name of a drug in the package insert?
    15·1 answer
  • Why did Herman Hollerith invent the Tabulating Machine?
    10·1 answer
  • POINT BOOST:
    12·1 answer
  • What is a computer?write any four features of computer​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!