title: How to print the counting in reverse order from 10 to 1 in java?
body: <p>I want to print reverse order of counting. How can I do that in java?
  I tried a little bit code but not succeed. </p>
  
  <pre><code>import java.util.*;
  public class reversecount 
  {
      public static void main(String [] args)
      {
          int num;
          Scanner sc = new Scanner(System.in);
          System.out.println("Enter Any Number");
          num = sc.nextInt();
  
          for(num=1; num&lt;=10; num--)
          {
              System.out.println(num);
          }
      }
  }
  </code></pre>