Thank you for registering.

One of our academic counsellors will contact you within 1 working day.

Please check your email for login details.
MY CART (5)

Use Coupon: CART20 and get 20% off on all online Study Material

ITEM
DETAILS
MRP
DISCOUNT
FINAL PRICE
Total Price: Rs.

There are no items in this cart.
Continue Shopping

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
4 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 ?

Provide a better Answer & Earn Cool Goodies See our forum point policy

ASK QUESTION

Get your questions answered by the expert for free