Question: problem about using for in maple 14

hi

i want to write these commands in maple but i dont khnow how to wirte :

do i=1,10

ans = i*2

f(i)=ans

end do

 

above code written in fortran patern and i want maple patern. for example i try these command but it doesnt work.

for ii from 1 to 10
 do ii*2
 f[ii](x):=%
end do

Please Wait...