{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Factorial - importjava.io importjava.util...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*;  import java.util.*;  public class Factorial{    public static Scanner teclado = new Scanner(System.in);    public static int factorial(int n){  int resultado;  if(n==0)  resultado =1;  else  resultado = n*factorial(n-1);  return resultado;}      public static void main(String args[]){    int n;  String user = ""; 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online