Sunday, 19 August 2018

solution of pattern in java programming


if you solve pattern problem then you grow your program solving ability  in java programming.
 hello dear student I am providing pattern solution of Java programming you can use this solution in your ICSE  board
exam and  find your goal  in this post we are providing good pattern    solution in java and  print it with stick.

solution of pattern in java programming
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns;

/**
 *
 * @author rajesh kumar shukla
 */
public class pattern8 {


    public static void main(String[] args) {
        for (int row = 1; row <= 8; ++row) {
            for (int col = 1; col <= row; ++col) {
                System.out.print("*");
            }

            System.out.println();
        }
    }

}
out put
run:
*
**
***
****
*****
******
*******
********

0 comments:

Post a Comment