Make your own free website on Tripod.com

Answer For Assignment

®2004 SheIZaN PunYe


Public class Diamond
Public static void main (string [ ] args){

for(int b=1;b<=6;b++)
for(int l;l<=4;l++)
System.out.Println(" * ");
System.out.Println("\n");

for(int a=3; a>4;a--)
System.Out.Println (" * ");

for(int c=1;c<2;c++)
System.Out.Println (" * ");
}
}

The ouput

*

**

***

****

***

*