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 Respostas