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
Oksana_A [137]
4 years ago
8

Write a recursive function using pseudocode or C/C++.

Computers and Technology
1 answer:
Anarel [89]4 years ago
5 0

Answer:

long fact(int n)

{

   if(n<=1)//base case

   return 1;  

   long p=fact(n-1);//recursive call.

   return n*p;//returning the factorial.

}

Explanation:

Above written function is written in C++ language.It is a recursive function to find the factorial of the function.

If we enter a number  equal to  or  less than  1  then the function returns 1. Then the recursive call  is made  and it is stored  in the long  variable  p and  the result is returned as n*p.

You might be interested in
_________ are mobile devices that are used to give drivers advance warning of work zones or other unusual conditions.
Pani-rosa [81]

Answer: Flashing arrow signs

Explanation:Flashing arrow signs are the symbols or signs that are used in the form of warning that is provided to the drivers on the road to indicate about the warning in advance regarding the construction work or any particular work zone is present on that road .

These warning helps the drivers to become attentive while moving on the road so that they meet any accident due to that  .Also these signs are help to the construction worker because they don't face much problem due to the advance sign.

5 0
4 years ago
Laptop computers, personal digital assistants, and cellular phones were all readily accepted and diffused in U.S. markets where
astra-53 [7]

Answer: Compatibility

Explanation:

 According to the question, the given products are offering compatibility with the customers needs and the priorities of the consumers. The customers comparability means the degree of the product that fit between customers expectation and the capability of serving by the operation team.

The customers expectation mainly reflected both the present and the past evaluation of the products and the user experience. The compatibility of the customers needs is to meet the quality, value  and the service of the product.

8 0
3 years ago
Ancler Corporation wants to calculate how much their profits were in the first quarter of the year. They should use a _____.
Karo-lina-s [1.5K]

Answer: Spreadsheet

Explanation:

Spreadsheet is a computer program that helps in keeping data records in form of rows and columns, storing account data etc. The information  or data is entered in sheets and can be updated, sorted and calculated for accounts, tax calculation, budget calculation, revenue calculation etc.

  • Example of spreadsheet :- Microsoft Excel program.
  • Therefore ,according to question,Ancler Corporation should use spreadsheet for calculation of profit in year's first quarter time

8 0
3 years ago
The system where the unit of measurement is centimeter
aleksklad [387]

Answer:

International System of Units

Explanation:

3 0
3 years ago
Which option describes wearable technology?
natita [175]

Answer:

D

Explanation:

it say mobile

6 0
4 years ago
Other questions:
  • Is a small file that a web server writes to the disk drive of the client computer, containing information about the user?
    8·1 answer
  • Which of the following memories would NOT be an example of long-term memory? a. acknowledging that you just sat down b. remember
    11·1 answer
  • What is virtual memory?
    11·1 answer
  • Write a pseudocode that will take marks of physics, chemistry and math as input, calculates the average and displays output.
    7·2 answers
  • ____________ is a series of numbers that identifies a particular computer. They may or may not be a reliable way to link you to
    14·1 answer
  • A network administrator determines who may access network resources by assigning users
    10·1 answer
  • Write the output of the following program:
    8·1 answer
  • Need help ASAP <br><br> Thankss + BRAINLIST only for correct answers
    10·1 answer
  • How to paste picture in word without moving table.
    12·1 answer
  • With an Internet connection, you can view, modify and delete files stored in your
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!