Сделал только два. Но что здесь не так?
public class Solution {
    public static void main(String[] args) {

    int a = 1;
    while (true)
        for(int i = 0; i < 10; i++){
        System.out.print(a * i + " ");
        if(i>=10){
        System.out.println(a * i + " ");
        }
    }
    int b = 2;
    while (true)
        for(int o = 0; o < 10; o++){
        System.out.print(b * o + " ");
    while (false)
        if(o>=10){
        System.out.println(b * o + " ");
        }
    }
    //напишите тут ваш код
    }
}