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
King Ayoze
King Ayoze - avatar
2 Respuestas