0

Factorial

How to write a factorial function in matlab? With an input x When x>0 it do the factorial When x=0 it returns 1 When x<0 it print error enter +ve number

24th May 2020, 1:32 AM
Moe Faris
Moe Faris - avatar
2 odpowiedzi
+ 1
Where is your try. First show it to us then we can help . You . If you want a ready made code . Then you are at wrong place. Because we always want Lerner's to try themselves ok.
24th May 2020, 4:32 AM
Ayush Kumar
Ayush Kumar - avatar
0
i wrote a code but it doesent work and do you know to code in matlab?
24th May 2020, 4:35 AM
Moe Faris
Moe Faris - avatar