RosettaCodeData/Task/Arrays/Fortran/arrays-31.f

2 lines
35 B
Fortran

a (1 : 5) = (/(i * i, i = 1, 10)/)