6 lines
84 B
Matlab
6 lines
84 B
Matlab
n = 5;
|
|
x = 1;
|
|
for i = 1:n
|
|
x = x * i;
|
|
end
|
|
fprintf('Faculty of %i is: %i\n', n, x) |