Skip to content

Commit 094e767

Browse files
authored
Merge pull request #414 from n6wbi6/master
One-line python factorial calculator and hello in c
2 parents e8cac81 + ab62c8c commit 094e767

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

CONTRIBUTORS.md

+5
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,8 @@ Name: [Antonio](https://github.com/toluwalope19) </br>
439439
Place: Nigeria </br>
440440
Coding Experience: Python and javaScript. </br>
441441
Email: [email protected] </br>
442+
443+
Name: [Abhishek Singh](https://github.com/n6wbi6) </br>
444+
Place: India </br>
445+
Coding Experience: 2 years of coding experience in C and python. </br>
446+
Email: [email protected] </br>

c/hello/n6wbi6_hello_world.c

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
5+
printf("Hello, world!");
6+
return 0;
7+
8+
}

python/factorial/factorial_n6wbi6.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fact = lambda x: 1 if x == 0 else x * fact(x-1)
2+
#testing it
3+
print(fact(25))

0 commit comments

Comments
 (0)