public class asterisk
{
public static void main(String[] args)
{
int row, col, spc=3, spc1=2, spc2=1, spc3=0;
for(row=1;row<=1;row++)
{
for(col=1;col<=1;col++)
{
for(spc=spc;spc>0;spc--)
{
System.out.print(" ");
}
System.out.print("*");
System.out.println();
{
for(spc1=spc1;spc1>0;spc1--)
{
System.out.print(" ");
}
System.out.print("**");
System.out.println();
{
for(spc2=spc2;spc2>0;spc2--)
{
System.out.print(" ");
}
System.out.print("***");
System.out.println();
{
for(spc3=spc3;spc3>00;spc3--)
{
System.out.print(" ");
}
System.out.print("****");
System.out.println();
}
}
}
}
}
}
}
i have this code that displays..
*
**
***
****
but how do this display with just using one asterisk each.. you see i have diff. count of asterisk in each for..