Skip to content

Commit

Permalink
Merge pull request #414 from n6wbi6/master
Browse files Browse the repository at this point in the history
One-line python factorial calculator and hello in c
  • Loading branch information
wzhouwzhou authored Oct 27, 2019
2 parents e8cac81 + ab62c8c commit 094e767
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,8 @@ Name: [Antonio](https://github.com/toluwalope19) </br>
Place: Nigeria </br>
Coding Experience: Python and javaScript. </br>
Email: [email protected] </br>

Name: [Abhishek Singh](https://github.com/n6wbi6) </br>
Place: India </br>
Coding Experience: 2 years of coding experience in C and python. </br>
Email: [email protected] </br>
8 changes: 8 additions & 0 deletions c/hello/n6wbi6_hello_world.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <stdio.h>

int main() {

printf("Hello, world!");
return 0;

}
3 changes: 3 additions & 0 deletions python/factorial/factorial_n6wbi6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fact = lambda x: 1 if x == 0 else x * fact(x-1)
#testing it
print(fact(25))

0 comments on commit 094e767

Please sign in to comment.