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

Write a while loop that will figure out the factorial of 5 (5!) and print this. It should use two integer variables (i and f) an

d print f at the end:
Computers and Technology
1 answer:
Hoochie [10]3 years ago
7 0

<u>Answer:</u>

<em>void main() </em>

<em>{ </em>

<em>int n, i, fact=1; </em>

<em>printf(""Enter the number\n""); </em>

<em>scanf(""%d"",&n); </em>

<em>i=num </em>

<em>while(i>=1) </em>

<em>{ </em>

<em>fact=fact * i; </em>

<em>i--; </em>

<em>} </em>

<em>printf(""The factorial of given number %d is %d\n"", n, fact); </em>

<em>return 0; </em>

<em>} </em>

<u>Explanation:</u>

This program obtains the number for which the factorial has to be found.

Then run a for loop till the factor of 1 is calculated and inside the for loop the number is multiplied with <em>other numbers in the descending order and finally result is printed. </em>

You might be interested in
Crisp-DM is an open standard process model that contains stages
Feliz [49]

Answer:

Yes, Cross Industry Standard Process for Data Mining has six stages. Business understanding, data understanding, data preparation, modeling, evaluation, and deployment.

Explanation:

3 0
3 years ago
Read 2 more answers
To what extent does w. e. b. dubois's argument still apply to the contemporary prison system?
fenix001 [56]

W. E. B. DuBois's "The Souls of Black Folk" is an important work that continues to resonate today. In it, DuBois argues that the black experience in America is fundamentally different from that of whites, and that this difference is the result of racism. He further argues that the black community must develop its own institutions and culture in order to thrive.

DuBois's arguments are as relevant today as they were when he wrote them. The contemporary prison system is a clear example of how racism continues to impact the lives of black Americans. Black people are disproportionately incarcerated, and the conditions in many prisons are abysmal. The lack of access to education and opportunities for rehabilitation means that many black Americans are effectively condemned to a life of poverty and despair.

DuBois's work is a call to action for black Americans to create their own institutions and to fight for their rights. The contemporary prison system is a clear example of how much work still needs to be done.

Learn more on black Americans here:

brainly.com/question/25102754

#SPJ4

3 0
1 year ago
54 points!!! Cyber security
Veseljchak [2.6K]

Answer:

a

Explanation:

3 0
3 years ago
When you use file explorer or windows explorer to delete a file from the hard drive, where does windows put the file?
Dvinal [7]
Trash bin

Reasons:

When you remove a file from the hard drive it is still written in binary code. So, windows places files in the *trash bin* if you did not want to delete it.
Unless USB or Removable flash drive, when you delete that it does not place any files in the trash bin.

6 0
3 years ago
What happens when there is a data fail?
Korvikt [17]
Data loss also sets back productivity timelines and can cause you to lose customers if it is accompanied by security breaches
7 0
3 years ago
Read 2 more answers
Other questions:
  • Two electronics technicians are discussing electrical quantities. Technician A says that resistance is an opposition to electric
    6·1 answer
  • Assuming that data mining approaches are to be used in the following cases, identify whether the task required is supervised or
    12·1 answer
  • How to revive a computer if it functions in an unexpected manner?
    9·1 answer
  • The TCP/IP ____ layer, sometimes called the Internet layer, is roughly equivalent to OSI's network layer.
    7·1 answer
  • Which of the following correctly shows the general structure of a for-each loop header?for (initialization; condition; increment
    9·1 answer
  • My speaker on my phone is not working, when I try and play music and videos the sound dosen't work. However my alarm works. Can
    9·2 answers
  • What is web browser <br>​
    7·2 answers
  • If a person's mobile phone was designed to work with 4G technology, what will happen when a 5G network is rolled out in their ar
    14·1 answer
  • 3. What of the following is the main components of computer system?
    9·2 answers
  • Cidr simplifies how routers and other network devices need to think about the parts of an ip address, but it also allows for mor
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!