title: Applying the use of Functions and Procedures
body: <pre><code>public static void main (String[] args) 
  {
      Scanner sc = new Scanner(System.in);
      int number;
      System.out.println("Enter a number to find the factorial of it: ");      
      number= sc.nextInt(); 
      int factor=1;
      if (number&lt;0 &amp;&amp; number&gt;10)
      {
          System.out.println("Invalid!! the number has to be between 1 and 10");
      }
      for( int x=1; x&lt;=number; x++ )
      {       
        factor = factor*x;            
        System.out.println("The factorial of  "+number+" is = " +factor);
      }
  
   }
  </code></pre>
  
  <p>Can u check my code @TNT? tell me if that's what u wanted me to do</p>