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
Blizzard [7]
3 years ago
10

Write a recursive function sumAll that accepts an integer argument and returns the sum of all the integers from 1 up to the numb

er passed as an argument. For example, if 50 is passed as an argument, the function will turn the sum of 1, 2, 3, 4, ..50.
Computers and Technology
1 answer:
slavikrds [6]3 years ago
8 0

Answer:

int sumAll(int n)//function definition.

{

   if(n==1)//if condition.

   return 1;

   else//else condition.

   {

       return n+sumAll(n-1);//return the value and call the function in recursive manner.

   }

}

Explanation:

  • The above-defined function is a recursive type function that is written in the c language, which holds the if and else condition.
  • When the user passes the largest value from 1, then the else condition will be executed which adds the largest value and pass the value after the decrement of the value as an argument.
  • When the value will become 1, then the function if-block will be executed which returns the value and ends the calling function recursively.
You might be interested in
Question #7
KatRina [158]

Answer:

answer.capitalize()

Explanation:

plzzzzzzzzzzzzz give me brainiest

6 0
3 years ago
Read 2 more answers
What would be an ideal scenario for using edge computing solutions?
marissa [1.9K]

Answer:

The issue is explained in the explanatory paragraph underneath.

Explanation:

  • Throughout the case of inadequate internet connectivity besides IoT systems or because that's not particularly effective for IoT gadgets always to be linked towards the web, edge computing deployment itself is possible.
  • This could be utilized across covalently linked industries including financial institutions as well as production.

4 0
3 years ago
Pls help it’s on a test!! no links :) you can zoom in if hard to read
kotykmax [81]

Answer:

the last one

Explanation:

the domain specifies exactly what file is requested the path specifies where the browsers request should be sent

8 0
3 years ago
Select the correct answer.
VladimirAG [237]

Answer:

B. cloud technology

Explanation:

There are various ways to make this possible but the best way would be using cloud technology. This would allow the entire media application to run on a server somewhere else and have the images and inputs completely streamed to and from the user's device. This allows the application to be able to run on any device that the user may have and even start on one device and transfer over to another while still having all your information and data saved and usable on each device.

6 0
3 years ago
Which technology concept uses computer resources from multiple locations to solve a common problem?
MrRa [10]
Sounds like you are talking about Grid computing. You can also say cloud computing since that is the buzz words nowadays, but cloud computing is a very general statement.
5 0
3 years ago
Read 2 more answers
Other questions:
  • Which cloud computing service model gives software developers access to multiple operating systems for testing?
    5·1 answer
  • Software that manages and supports the resources of a computer is known as?
    10·1 answer
  • ServletConfig defines a set of methods that a servlet uses tocommunicate with its servlet container.
    5·1 answer
  • Lexi wants to buy a $300 painting. when she gets to the store, she finds that it is on sale for 40% off. how much does Lexi spen
    10·1 answer
  • What are the four types of technical drawing?​
    9·1 answer
  • A ________ is a single media file including art, sound, animation, or movies.
    9·1 answer
  • Me inculparon de crear una cuenta en Facebook y colocaron el barrio donde vivo, ¿cómo podría demostrar lo contrario? Ayuda urgen
    6·1 answer
  • Scenario
    7·1 answer
  • 2. Discuss CORBA functions<br><br>​
    6·2 answers
  • Write a paragraph explaining why you think its important to use ethics in computers
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!