Pls help me with this.I want take an input and output the factorial of that input | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Pls help me with this.I want take an input and output the factorial of that input

Scanner sc = new Scanner(System.in); int N = Scanner.sc.nextInt(); int šŸ¤”šŸ¤”šŸ¤” = 1; for(int x= 1;x<=N;x++) { šŸ¤”šŸ¤”šŸ¤” *=x; } System.out.println(šŸ¤”šŸ¤”šŸ¤”); } }

6th Mar 2023, 11:17 AM
The Philosopher
The Philosopher - avatar
2 Respostas