hey guys, im having problem converting this to a while loop.
int lineB;
int starB;
for(lineB=1; lineB<=10;lineB++)
{
for(starB=10; starB>=lineB; starB--)
System.out.print("*");
System.out.println();
}
System.out.println();
Can it be written like this?
int lineB=1;
int starB=1;
while(lineB<=10)
{
while(starB>=lineB)
{
StarB--;
System.out.print("*");
System.out.println();
}
lineB++;
}