MATLAB Answers


The for loop.

Asked by Cebolenkosi Mandlanti on 23 Apr 2019
Latest activity Commented on by Stephen Cobeldick on 23 Apr 2019
How do I write a for loop that finds the product of natural numbers from 1 to 50.
i.e. 1x2x3x4...x50


@Cebolenkosi Mandlanti : what have you tried so far?
How accurate does the answer need to be?
Cebolenkosi Mandlanti's "Answer" moved here:
Not too accurate, I just want know how do I put it together.
Well, it is not very hard to multiply values using a loop, so I presume that you must have tried something in the twenty-three minutes since you wrote your question. Please show us what you have tried so far.

Sign in to comment.

0 Answers