+ 1
Can I save results in one array?
Exemle, if I use for(x=0; x<=5;x++) Int [] arrey={0,1,2,3,4,5};
1 Respuesta
+ 6
Yup! Although you didn't specify the language, so I'll assume this is Java:
// Creating the array
int[] array = new int[6];
// Fill array with the for loops results!
for (int i = 0; i < array.length; i++)
array[i] = i;