title: Building stairs in Java using asterisks
body: <p>I am tasked with writing a program that prompts the user to input a positive number, and then it draws blocks of asterisks (*) to form stairs.  The first block’s length and width should be the number entered.  The next block should double that size, and so on until the number of blocks shown are equal to the number entered. </p>
  
  <pre><code>import java.util.Scanner;
  public class Lab1 {
  
      public static void main(String[] args) {
          Scanner keyboard = new Scanner(System.in);
          System.out.println("Enter a number of length and width of the first blocks and I will draw some stairs!");
          int number = keyboard.nextInt();
          for (int i =0; i&lt;number; i++) {
              for (int j=0; j&lt;number; j++) {
                  System.out.print("*");
              }
              System.out.println("");
          }
      }
  
  }
  </code></pre>
  
  <p>Sample output for input 3:</p>
  
  <pre><code>3
  
  ...
  ...
  ...
  ......
  ......
  ......
  ......
  ......
  ......
  .........
  .........
  .........
  .........
  .........
  .........
  .........
  .........
  </code></pre>