title: How do I make it so my code displays a cerrtain amount of lines (like it does) but backwards
body: <p>So when I enter 4, instead of say 4 bottles of beer etc, It will start with 100 and go to 96 and then stop (ending with the final line)</p>
  
  <pre><code>import java.util.Scanner;
  
  public class ThreeDotNine {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        System.out.print("How many Verses would you like to print:  ");
        String num = sc.nextLine();
        int num2 = Integer.parseInt(num);
        String s = " ";
  
        for (int x = num2; x &gt; 0; x--) {
            System.out.println(x + " bottles of beer on the wall " + x + " bottles of beer");
            System.out.println("Take one down, pass it around, " + (x - 1) + " bottles of beer on the wall.\n");
        }
        System.out.print("Go to the store, buy some more, ");
        System.out.println("99 bottles of beer on the wall.\n");
  
    }
  }
  </code></pre>