вывод корректен, цикл есть. Но решение не принимает
package com.javarush.task.pro.task05.task0524;
/*
Взлом Кибердракона
*/
public class Solution {
public static int[] coordinates;
public static void main(String[] args) {
coordinates = new int[200];
int count = 0;
int x = 0;
while (x <= 991)
{
if (x % 10 == 0 || x % 10 == 1)
{
coordinates[count] = x;
count += 1;
}
x += 1;
}
for (int i = 0; i < 200; i++)
{
System.out.print(coordinates[i] + ", ");
}
}
}