Question: How can I use two statements in one loop?

loop.mw

I want to use loop to get results for two satements with one counter

like this:

for i from 1 by 1 to 5 do Y_i :=i , X_i :=i^2 end do

but maple shows this error unterminated loop

I need to use some statements in one loop and I separated them by comma but maple gives error

What should I do?

Please Wait...