- CEMC Home
- Mathematics and Computing Contests
- Master of Mathematics
- Web Resources
- Face-to-Face Workshops
- Order Books
- 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.