cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Translate the entire conversation x

Simplify program using for loop

CarlosRomero
14-Alexandrite

Simplify program using for loop

Hi Guys,

Can anybody to simplify this program?

I must run for “k” and “i” twenty times the block.

CarlosRomero

ACCEPTED SOLUTION

Accepted Solutions

Hi Carlos,

 

should be as simple as embedding the two for loops in yet another for loop.

See if this is what you need.

 

Success!
Luc

View solution in original post

7 REPLIES 7

 

Hi Carlos,

You should attach your Prime worksheet, not just a picture.

And state which version of Prime you are using.

 

Success!
Luc

CarlosRomero
14-Alexandrite
(To:LucMeekes)

Hello Luc.

See attached files.

CarlosRomero

Hi Carlos,

 

should be as simple as embedding the two for loops in yet another for loop.

See if this is what you need.

 

Success!
Luc

CarlosRomero
14-Alexandrite
(To:LucMeekes)

Luc, the program does not return results.

See the attached image.

CarlosRomeroLM_20240207_ForLoop.png

Luc had disabled autocalculation in his sheet.

So either turn it on again or Press F9 to force (a single) re-calculation of the sheet.

CarlosRomero
14-Alexandrite
(To:Werner_E)

Thanks Luc and Werner.

It's OK.

CarlosRomero

Announcements

Top Tags