(In Dart language) Calculate the factorial value of the number entered as a parameter and return it
Write the method that returns
I’m trying to learn flutter, I’m good at functions, but I couldn’t do it.
What I want is to multiply the entered number backwards. For example, if the entered number is 3, the process will be as follows: 321 will give the answer 6.
2
Answers
First approach (iterative):
Second approach (recursive):
here the method :
here the a full app code :
hopefully this will answer your question.