View Link's post (Summation and pro...) for this comment.

SmileBASIC Community

Oscar

Spoilers · 08/22/2016 5:56 PMPlayed

A simple way to do a summation or product is using a FOR loop. For example, you could write the sum from I=M to N of a function F like this... SUM=0 FOR I=M TO N INC SUM,F(I) NEXT ...where F is a user-defined function that returns a numerical value. A product would look pretty similar... PROD=1 FOR I=M TO N PROD=PROD*F(I) NEXT

Advertisement

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Edit Comment

Select an action: