MATLAB Answers

0

The for loop.

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

  3 Comments

Stephen Cobeldick on 23 Apr 2019 at 14:42
@Cebolenkosi Mandlanti : what have you tried so far?
How accurate does the answer need to be?
Stephen Cobeldick on 23 Apr 2019 at 15:01
Cebolenkosi Mandlanti's "Answer" moved here:
Not too accurate, I just want know how do I put it together.
Stephen Cobeldick on 23 Apr 2019 at 15:03
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