Wednesday, 27 July 2011

Simple program for printing the following chatuskon upto given value and print the patter for “*”



                        *
                                                                                                    *                  *                  *                                                                                                 
                                                                                *                  *                  *                  *                  *
                                                            *                  *                  *                  *                  *                  *                  *
                                        *                  *                  *                  *                  *                  *                  *                  *                  *




class a1

{

Public static void main (String args[])

{

int I,j,k,1;

for(i=1;i<=5;i++)

{

for(1=5;1>=I;1--)

System.out.print(“\t”)

for(j=1:j<=I;j++)

System.out.print(“*\t”);

for(k=i-1;k=1;k--)

System.out.print(“*\t”);

System.out.println();
}
}









0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More