- CEMC Home
- Mathematics and Computing Contests
- Master of Mathematics
- Courseware and
- Face-to-Face Workshops
- Books and Posters
- Sponsors and Donors
- About Us
Below, you will find example programs for determining the factorial of a number (i.e., n! = n*(n-1)*...*3*2*1).
This example should be useful for the following reasons:
Here are the sample programs:
The sample input file is input.txt.