I keep getting an error thrown at me saying that the height of my triangle is not 10 lines. can someone help me fix my code?
package com.codegym.task.task04.task0437;
/*
Triangle of eights
*/
public class Solution {
public static void main(String[] args) throws Exception {
for (int i=0; i<=10; i++)
{
for (int j=0; j<=i; j++)
{
System.out.print("8");
}
System.out.println("");
}
}
}