MATLAB Answers

The for loop.

1 view (last 30 days)
Cebolenkosi Mandlanti
Cebolenkosi Mandlanti on 23 Apr 2019
Commented: 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

  3 Comments

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

Answers (0)