Guest

How to write a Java program for factorialDo the programme with scanner

How to write a Java program for factorialDo the programme with scanner

Grade:11

1 Answers

Sriesh
103 Points
6 years ago
5! Is written as 5 factorialIt is 1*2*3*4*5Another example-7!1*2*3*4*5*6*7This means that u have to multiply everything before the numberStart the program as"Import Java.util.ScannerScanner sx=new Scanner(System.in);

Think You Can Provide A Better Answer ?

ASK QUESTION

Get your questions answered by the expert for free