I'm trying to create a program that creates the following:
*
**
***
****
*****
using loops.
But I keep receiving errors... and I can't figure out why.
Code is as such so far:
Thank you in advance.
*
**
***
****
*****
using loops.
But I keep receiving errors... and I can't figure out why.
Code is as such so far:
Code:
public class Lab7_Ex3
{
public static void main(String[] args)
{
for (int i = 1; i=5; i++);
{
for (int j = 1;j = 5; j++);
{
System.out.println('*');
}
System.out.println();
}
}
}
Comment