I have run the code in IntelliJ and Eclipse. In both cases the screen output shows a right triangle of eights with 10 lines, but the task keeps failing. What can I do?
package com.codegym.task.task04.task0437;
/*
Triangle of eights
*/
public class Solution {
public static void main(String[] args) throws Exception {
int n = 8;
int base = 10;
for (int i = 0; i <= base; i++) {
for (int j = 0; j < i; j++) {
System.out.print(n);
}
System.out.println();
}
}
}