Computer Science, asked by keled123ali, 3 months ago

Write a matlab program to calculate the factorial of a given number.

Answers

Answered by Anonymous
0

Answer:

Examples

1)10! View MATLAB Command. f = factorial(10) f = 3628800.

2)22! View MATLAB Command. format long f = factorial(22) ...

3)Factorial of Array Elements. View MATLAB Command. n = [0 1 2; 3 4 5]; f = factorial(n) ...

4)Factorial of Unsigned Integer Values. View MATLAB Command. n = uint64([5 10 15 20]); f = factorial(n)

hope it helps

pls mark me as brainliest

Explanation:

Answered by IIXxSecretBoyxXII
0

Answer:

n=5;

factorial=1;

for i=1:1:n

factorial=factorial*i;

end

Explanation:

Similar questions