+ 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};

4th Mar 2018, 1:41 AM
mateo quiceno toro
mateo quiceno toro - avatar
1 Resposta
+ 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;
4th Mar 2018, 2:01 AM
Rrestoring faith
Rrestoring faith - avatar