answersLogoWhite

0

How do you wrte ac programe for factorial?

User Avatar

Anonymous

∙ 15y ago
Updated: 8/18/2019

#include <stdio.h>

int main()

{

int fact=1,num;

printf("Enter number: ");

scanf("%d",&num);

if((num==0) (num==1))

{

printf("Factorial = %d",fact);

return 0;

}

else

{

while(num!=1)

{

fact=fact*num;

num--;

}

printf("Factorial = %d",fact);

return 0;

}

}

User Avatar

Wiki User

∙ 15y ago
Copy

What else can I help you with?

Related Questions

How do you wrte aC program in Linux?

OK. Done that


How do egyptians wrte?

hieroglyphics


What is the value of 9 factorial plus 6 factorial?

The value of 9 factorial plus 6 factorial is 363,600


What is 30 factorial divided by 27 factorial times 3 factorial?

It is 4060.


What is the most watched tv programe?

Espn


What is factorial of 998?

factorial of -1


How do you wrte a sentence with the word relation?

economy


How do you wrte a program to compound interest?

#include


How do you wrte a sentence using word were?

Where were you yesterday?


What is the factorial of 27?

27 factorial = 10,888,869,450,418,352,160,768,000,000


What is 1 factorial?

1 factorial = 1


What is factorial of six?

Factorial 6 = 720

Trending Questions
How does the Earth's crust respond to heat from below? What is the value of a 1962 US 5 dollar bill? What is 46201 in sour suite? Where is Texas on the globe? What is plan saving and spending your income called? When is the mens ice hockey final of the 2010 winter Olympics? Why predators are generally less abundant than their prey use the second law of thermodynamics to explain why? What is a scientist who studies waves and ocean currents? What are the two types of regulators in the cell cycle? Can you eat a zucchini seed? What do you do if your minecraft contols are messed up? A burn injury that results from a heat source? Who is the youngest chess grandmaster? Can you be 12 or older and be a secret agent? Need-diagram to fuse-panl for Chevy caliver? How can you take promethazine and codeine syrup after it turns to crystal? Who writes the treaties? What are the measurements of a full size duvet? What is the greatest common factor of 48 and 84? How do you replace the left tail light assembly not the bulbs on a 2004 Mazda 6 sedan?

Resources

Leaderboard All Tags Unanswered

Top Categories

Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics

Product

Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver FAQ

Company

About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP Issues
Answers Logo
Copyright ©2025 Answers.com. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.