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

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
How do scientists know when a tornado is actually coming? How do you use Mario paint composer? How does goat walk? Difference between oroantral communication and oroantral fistula? Which challenges faced both Pachacuti and Huayna Capac as rulers of the Inca Empire? What is aieee quota for sgsits? The basic hardware of any computer consists of a ... processing unit? What role do marriage ceremonies in the Bible play in shaping the cultural and religious practices of modern society? Why don't people who live in the southern hemisphere feel upside down? What are the positive and negative effects of neoprene? What size is springfield Illinois? How is compaction important in the formation of coal? How many elements end with ium? How has the society changed since September 11? What restaurants begin with the letter C? What is the difference between positive and negative ions and how do they impact our overall well-being? What is the highest common multiple of 15 and 23? How does the eukaryotic initiation complex locate the true start codon? Raksha Bandhan details in Telugu language? When did Newcastle KB United end?

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.