
public class starForTest
{
public static void main(String [] args)
{
for (int i=1; i<=9; i++)
{
System.out.println();
for (int j=9; j>=i; j--)
{
System.out.print(" ");
}
for (int k=1; k<=i; k++)
{
System.out.print("*");
}
}
System.out.println();
}
}
in this i is row num and j is column num... and what about k....? plese tell me the control flow

In your code, the i in for loop (int i=1; i<=9; i++) generates the nine rows to display the aestricks. Then, the j in for loop (int j=9; j>=i; j--) decreases the spaces by 1 throughout the rows. After that k in the last loop generates the aestricks in nine rows.