This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/programming/code/factorialWhileLoop.m

9 lines
137 B
Matlab

n = 5;
counter = 1;
x = 1;
while counter <= n
x = x * counter;
counter = counter + 1
end
fprintf('Faculty of %i is: %i\n', n, x)