% EXERCISE:     The factorial function 'fac'
%
% Program:      fac.m
% Written by:   you
% For:          EE 311
%               Exercise For Computer Lab 1
% Date:         ??
% Purpose:      To develop your own function for computing
%               a factorial of x, x!.
function y=fac(x)


%************************************************************************
% Exercises:                                                            *
%                                                                       *
% Complete the function above. Examine the error messages to see what   *
% limits the user of the function.                                      *
%                                                                       *
%************************************************************************