Q2.a) To find factorial of a number using functions. Sample Output: enter a no: 5 factorial=120 OR
Added by Terri H.
Close
Step 1
The factorial of a number n is the product of all positive integers less than or equal to n. It is denoted by n! and is defined as: - n! = n * (n-1) * (n-2) * ... * 1, for n > 0 - 0! = 1 ### Step 2: Design the Algorithm Show more…
Show all steps
Your feedback will help us improve your experience
Luke Humphrey and 52 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 python program to find factorial of 5 with output
Sarvesh S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD