% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe

%=====================================
% factorial
%=====================================
clear all
close all
clc

n = 7;

f = 1;
for i=2:n
    f = f*i;
end
f,factorial(n)