small challenge : factorial | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

small challenge : factorial

Make the shortest code to find the factorial of an integer . use Any language , no rules . here it is i think the shortest one https://code.sololearn.com/cD9piu7S4Xz6/#cpp

29th Dec 2017, 5:14 PM
hero
12 Answers
+ 4
Here, my smallest solution in Ruby.. https://code.sololearn.com/c22tD4rpWh6I/#rb
30th Dec 2017, 6:11 PM
noobcøder
noobcøder - avatar
+ 2
https://code.sololearn.com/czAFSwbs9SAE/?ref=app
29th Dec 2017, 5:34 PM
VcC
VcC - avatar
29th Dec 2017, 6:55 PM
Kodirbek Makharov
Kodirbek Makharov - avatar
+ 2
https://code.sololearn.com/Wxk7KL58inWk/?ref=app
30th Dec 2017, 2:11 AM
Luc Hariman Randrianomenjanahary
Luc Hariman Randrianomenjanahary - avatar
29th Dec 2017, 5:49 PM
abdulazizumarovich
abdulazizumarovich - avatar
+ 1
29th Dec 2017, 6:06 PM
Yesh Jadav
Yesh Jadav - avatar
+ 1
https://code.sololearn.com/c5YhvYfwl0UT/?ref=app
29th Dec 2017, 7:13 PM
Kodirbek Makharov
Kodirbek Makharov - avatar
+ 1
Haskell: f n=foldl(*)1[1..n]
29th Dec 2017, 10:17 PM
romangraef
29th Dec 2017, 6:01 PM
Harjeet Singh
Harjeet Singh - avatar
29th Dec 2017, 11:23 PM
Petr Leliaev
Petr Leliaev - avatar
0
https://code.sololearn.com/cLwzduOxDzwh/?ref=app
15th Jan 2018, 7:52 PM
...
- 1
@petr Nope
29th Dec 2017, 11:29 PM
VcC
VcC - avatar