answersLogoWhite

0

How do you wrte ac programe for factorial?

User Avatar

Anonymous

∙ 16y 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

∙ 16y ago
Copy
User Avatar

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 the most watched tv programe?

Espn


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

It is 4060.


What is factorial of 998?

factorial of -1


How do you wrte a program to compound interest?

#include


How do you wrte a sentence with the word relation?

economy


How do you wrte a sentence using word were?

Where were you yesterday?


What is factorial of six?

Factorial 6 = 720


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

Trending Questions
Why does Spain ban the mailing of playing cards? Why is boiling a good sterilization procedure? Do avocados melt? Which of these is the symbolic meaning of a media that's often hidden within the obvious or common-sense meaning? What kind of axles does a 2005 Wrangler Sport have front and rear? What happens when sulphur reacts with hot and concentrated sulphuric acid? Why did Spain conquer the Philippines? Where is Fred and melanie on dancing on ice? What is a 1978 no mint cent worth? Where does the god Ares spend his time? What is actor sequitor forum rei in Law? What are adj to describe Charlotte's father? What are the 5 p's of international business? Which saint wrote in his room Here you do not speak evil of anyone? What is responsible for directing the operations of a computer? What was not a result king Henry VIII request to the pope to cancel his marriage? What are the assonance in the cremation of Sam McGee? The French helped the montagnais and algonkin fight? What is transfer of the water from leaves of plants into the air is called? What actors and actresses appeared in Roser og persille - 1993?

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 ©2026 Infospace Holdings LLC, A System1 Company. 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.