How to check how many Divisors there's in a whole number and How to express a factorial equation to Odd numbers?
<p>So my homework tells me to write the equation for a ODD number, the equation must be a factorial if and only if the number is odd.</p>

<p>In my head I the structured came like this (until I don't know how to use the factorial)</p>

<pre><code>import java.util.*;

  public class apple {
public static void main(String args []) {
    Scanner var = new Scanner(System.in);
    int m;
    System.out.println("Type in your first number: ");
    m = var.nextInt();
    if (m==0){ //i don't know if m==0 express the condition to be whole numbers, please tell me which is.
        //here I need to check how many divisors there is for my statement
    }else if //Again, i don't know how to proceed here, i need to place the condition if M is ODD, how?
        //here i need to state (what i guess) the equation of factorial number (in which case, if and only if is odd)

    // and than print the results out. That is all the job it needs to be done.
    }
}
 }
</code></pre>
