Wap to print factorial of a number using for loop only upto 13 | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Wap to print factorial of a number using for loop only upto 13

18th Dec 2016, 3:49 PM
Shakirr Khan
Shakirr Khan - avatar
4 ответов
+ 1
Do you want that someone write a web app for you or what is here your question?
19th Dec 2016, 2:06 PM
Erik
+ 1
Before you start to harrass other you should first learn to write well described and clear question. So maybe this answer fit better to you :D You can use for instances a for-loop start from number a. And it is looked for the factorial of a. So why then not just: long result = 0; for (int i = a; i > 0; i--) { result *= i; } System.out.print(result); 'a' can be a number from 1 to 20.
2nd Jan 2017, 10:32 AM
Erik
- 1
it means write a program
19th Dec 2016, 3:40 PM
Shakirr Khan
Shakirr Khan - avatar
- 1
Erik,you don't know basic thing
19th Dec 2016, 3:41 PM
Shakirr Khan
Shakirr Khan - avatar