int numero=1; int cont=1; while(cont<6){ numero=numero*(numero+1); cont++; } System.out.println(numero);