This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
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)