Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

System.out.

println("entrer le nombre");
Scanner cl=new Scanner(System.in);
int x = cl.nextInt();
int k=1;
for(int i=1;i<=x;i++)
k=k*i;
System.out.println("fact de "+ x+" est : "+k);
}

You might also like