Develop a C program to find the factorial of any number using function. Input a number and send to the function as argument to calculate the factorial.
Added by Jorge P.
Close
Step 1
First, we need to declare the function that will calculate the factorial. We can name it "factorial" and it will take an integer argument and return an integer value. ```c int factorial(int num); ``` Show more…
Show all steps
Your feedback will help us improve your experience
Haricharan Gupta and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a recursive function for computing factorial of a number. Write main to test its functioning. C programing
Willis J.
6. Write a program to find factorial of a given number
Haricharan G.
Write a java Program to find the factorial of a given number using recursion
Supreeta N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD