StairStepattern 4-16

Post date: Mar 4, 2014 8:21:59 PM

/*

 * To change this template, choose Tools | Templates

 * and open the template in the editor.

 */

package stairstepattern;

import java.util.Scanner;

/*

   This program displays a stairstepattern.

 */

public class StairStepattern {

   

    public static void main(String[] args) {

        // TODO code application logic here

        final int NUM_STEPS =6;

     for (int r = 0; r < NUM_STEPS; r++)

      {

        for (int c = 0; c < r; c++)

          System.out.print(" ");

          System.out.println("#");

       }

    }

}