There is the following cycle:
while (b > 0){ c = a % b; massM[i] = c; a = b; massA[i] = a; System.out.print(massA[i] + " "); b = c; }
When entering a = 525, b = 231; The massA [i] array has the form {231, 63, 42, 21} how to make it so that the array would be {525, 231, 63, 42, 21}, that is, entered and become at the beginning of the array.