Skip to content

Commit

Permalink
Merge branch 'master' into c_isPowerOfTwo
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhouwzhou authored Oct 27, 2019
2 parents a6ccf31 + 094e767 commit cf2793d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ 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>

Name: [Nasser](https://github.com/nasafix-nasser) </br>
Place: Iran </br>
Coding Experience: C/C++. </br>
Expand Down
1 change: 1 addition & 0 deletions awk/pbootly_temperature_convertor.awk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BEGIN {printf "Enter a temperature of format ##f or ##c to get the opposing value\n"; getline < "-"} BEGIN { if ( $1 ~ /f/ ) { print (((substr($1, 1, length($1)-1) - 32) * 5/9))"C"} else if ( $1 ~ /c/ ) { print (substr($1, 1, length($1)-1) * 9 / 5 + 32"F")} else {print "Usage: ##f to convert to celcius ##c to convert to fahrenheit"}}
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 cf2793d

Please sign in to comment.