When I type it into eclipse I get the output I expect. I have tried it with both String 8 and int 8, just in case, and I fails every time.
I think i have gone code blind, what am I missing?
Thanks in advance
G
package com.codegym.task.task04.task0437;
/*
Triangle of eights
*/
public class Solution {
public static void main(String[] args) throws Exception {
for (int i = 1; i <=10; i++)
{
int count = 1;
System.out.println();
while (count <= i)
{
System.out.println("8");
count++;
}
}
}
}