Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  dd
Language: JAVA
Code:
class series {
    public static void main ( String arg[] ){
        int ln=9;   //Number of lines/rows
        for(int i=1;i<=ln;i++){
        if(i<=ln/2+1)
            for(int j=1;j<=i;j++)   System.out.print("*");
        else
            for(int j=ln-i+1;j>0;j--)   System.out.print("*");
        
        System.out.println();   //New Line
    }
    }
}     
Comments: