StairStepattern 4-16

posted Mar 4, 2014, 12:21 PM by dldar masud   [ updated Mar 4, 2014, 12:21 PM by Karwan Jacksi ]
/*
 * 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("#");
       }
    }
}

ċ
StairStepattern.java
(1k)
Karwan Jacksi,
Mar 4, 2014, 12:21 PM
Comments