Is that java algorithm correct?
<pre><code> import java.util.Scanner;

public class doisExercicio {

  public static void main(String[] args) {

  int n, fat=1,c=1, aux;

 Scanner leia=new Scanner(System.in);

 System.out.println("Digite um numero inteiro");

 n=leia.nextInt();

  aux=n;

 do{ 

 fat*=aux;

 aux--;

 c++;

 }while(c&lt;=n);

 System.out.println("O fatorial é : "+ fat);
</code></pre>

<p>}</p>

<p>}</p>
