# Fill in the fields 
# Name: (put your name here)
# Student Number: 
# CDF account:

# CSC104h Winter 2008 Assignment 2
# A series of functions to deal with monetary denominations for countries around the world

# Here is an example function to illustrate how to test
# This function accepts a positive integer (nbr) and returns the factorial of the number.
def factorial(nbr):
    x = 1   # initialize the value of the product to be calculated
    while nbr > 1: # set the condition to exit the loop
        x = x * nbr
        nbr = nbr - 1 # ensure that the exit condition is reached
    return x

