write a c++ program to find the factorial of a number.

Answers

Answer 1

Answer:

I'm not gonna use recursion for this program.

#include <iostream>

using namespace std;

int main()

{

int input,factorial=1;

cout<<"Enter a number to get it's factorial: ";

cin>>input;

for(int i=1;i<=input;i++)

{

factorial *=i;

}

cout<<"The factorial of the number you entered is: "<<factorial;

return 0;

}

Answer 2
#include
using namespace std;
int main() {
int num,factorial=1;
cout<<" Enter Number To Find Its Factorial: ";
cin>>num;
for (int a=1;a<=num;a++) {
factorial=factorial*a;
}
cout<<"Factorial of Given Number is ="< return 0;
}

Related Questions

jjhb ft fv tuning Denise l Debbie

Answers

What








What the debbie



Answer: is Debbi

Explanation: and what

What is your impression on the subject fundamentals of database systems?​

Answers

Answer:

The DBMS software enables users to share data. It provides a systematic method of creating, updating, retrieving and storing information in a database. DBMSs also are generally responsible for data integrity, data access control, and automated rollback, restart and recovery

   Database Fundamentals introduces database concepts, including relational databases, tables and data types, data selection and manipulation, views, stored procedures, functions, normalization, constraints, indexes, security, and backup and restore.

Question: 5
In 2014, what percentage of the world population has access to the Internet?
Less than 30%
Less than 50%
Over 50%
Over 80%
Please help

Answers

The answer would be less than 50

In 2014, less than 50% percentage of the world population has access to the Internet option (B) less than 50% is correct.

What is a computer?

A computer is a digital electronic appliance that may be programmed to automatically perform a series of logical or mathematical operations. Programs are generic sequences of operations that can be carried out by modern computers. These apps give computers the capacity to carry out a broad range of tasks.

As we know,

Internet, a system design that allows different computer networks all over the world to communicate, has transformed communications and methods of commerce.

Thus, in 2014, less than 50% percentage of the world population has access to the Internet option (B) less than 50% is correct.

Learn more about computers here:

https://brainly.com/question/21080395

#SPJ2

WHAT ACTIONS CAUSE SPAM ON LINKEDIN?

Answers

Answer:

LinkedIn has a very smart algorithm, and it has a very strict policy against spammers. Back in 2014, it deleted millions of accounts that were causing spam on LinkedIn.  

Spam occurs:  

1. When you send bulk of connect requests in a short time  

2. When you send irrelevant messages to prospects  

3. When you Perform overactivity  

4. When you use LinkedIn automation tools  

5. When you send spammy and sales-y messages  

All these actions cause spam on LinkedIn, and it immediately takes action against you by restricting your account temporarily or permanently.

What is an example of an Experience component within an enterprise platform?​

Answers

Answer:

A

Explanation:

A system used for processing customer payments. A tool used to coordinate recruitment of new employees. A mobile app used by customers to place orders.

Other Questions
Determine whether each equation is always, sometimes, or never true.2x + 7 - x = 3 + x + 4AlwaysSometimesNeverEmpty SetI said never but I want see if thats right Which section of the article BEST explains why atranscontinental railroad became a necessity forthe United States?AIntroduction (paragraphs 1-4)B"Central Pacific Railroad Company is formedC"Union Pacific Railroad Company launches"D"Settlements generate wild behavior" Jerod used a golf club to hit a ball what was the action and reaction Can someone help me im struggling What was the main effect of the Persian wars?Persia was no longer a threat to anyone.Athens and Sparta began working together.Athens became the leader of the Greek city-states.Sparta became the leader of the Greek city-states. -((r-3-5p) How do I do this problem? Anybody know the awnser to number 4 and 5 please awnser fast if you know it What is 15 percent of 1135? Also Explain how you came up with your solution and the actions you took. Can you answer this math homework? Please! Why were southerners successful in using literacy tests to keep African Americans from voting HELP PLSSQu estructura es responsable de regular todas las actividades celulares?Escoge 1 respuesta:LisosomaNcleoAparato de GolgiMitocondrias NEED HELP NOW WILL MARK BRANLIESTShow all work to multiply quantity 3 plus the square root of negative 16 end quantity times quantity 6 minus the square root of negative 64 end quantity (10 points) Relative to the cave opening, what integer represents the depth of the secondclimber? Please help!! Will give BRAINLIEST! 2The table shows the length, L, of the spiral from (0,0) to Corner, where k is an even number.Term numberLengthk12224636124820nkn(n+1)(a) Find a formula for n in terms of k.(b) Use part (a) to show that the formula for the length, I., of the spiral from (0,0) to Corner is1. = $(x+2)(e) Show that the formula gives the correct length of the spiral from (0,0) to Comer (4) write a letter to your uncle thanking him for paying your ssce registration fees and discuss possible consequences for failure to have redered the assistance if you attend a public high school, you are not charged admission fees or tuition does it follow then that you face no opportunity cost in attending school explain yourself What numbers are a distance of unit from on a number line?Select the locations on the number line to plot the points.++00 T7+100+10068CON+colon711 0800W+118+002800 10+1N 00-10000 IN00 Write an ICET Paragraph which answers the following questions: What pressures are Ponyboy and Cherry under? Is Cherry right to say that "things are rough all over"? Why? URGANT 100 POINTS!!! PLEASE ANSWER ASAP! :)Which statement best explains why limestone has fossil imprints but marble has no fossil imprints? Marble is a sedimentary rock and limestone is a metamorphic rock. Limestone is a sedimentary rock and marble is a metamorphic rock. Limestone is formed due to intense heat and pressure and marble is formed deep inside Earth. Marble is formed due to the accumulation of sediments and debris and limestone is formed from lava.