Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

star pattern in java

    public static void main(String[] args) {
        for (int i = 0; i <10 ; i++) {
            for (int j = i; j <10 ; j++) {
                System.out.print(" * ");
            }
            System.out.println();
        }
    }

/*
*  *  *  *  *  *  *  * 
 *  *  *  *  *  *  * 
 *  *  *  *  *  * 
 *  *  *  *  * 
 *  *  *  * 
 *  *  * 
 *  * 
 * 
*/
 
PREVIOUS NEXT
Tagged: #star #pattern #java
ADD COMMENT
Topic
Name
7+4 =