diff --git a/README.md b/README.md index 2e0b82e..bbb9542 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ Hanahah + +sure diff --git a/binary.c b/binary.c new file mode 100644 index 0000000..921f6eb --- /dev/null +++ b/binary.c @@ -0,0 +1,22 @@ +#include +#include +void main() +{ + + int a,c,b; + printf("Enter a number\n"); + scanf("%d",&a); + c=a; + b=c; + while(c>1) + { int count = 0; + do + { + c=c/2; + count++; + }while(c>1); + b = b-pow(2,count); + printf("%d ",b); + c=b; + } +} diff --git a/file5.html b/file5.html index 618d7d8..5f55ee5 100644 --- a/file5.html +++ b/file5.html @@ -1 +1 @@ -

Hactoberfest 2019

\ No newline at end of file +

Hacktoberfest 2019

\ No newline at end of file diff --git a/hack4.py b/hack4.py index 42c6687..576825f 100644 --- a/hack4.py +++ b/hack4.py @@ -1,10 +1 @@ - - # Python program to print -# ASCII Value of Character - -# In c we can assign different -# characters of which we want ASCII value - -c = 'g' -# print the ASCII value of assigned character in c -print("The ASCII value of '" + c + "' is", ord(c)) +import datetime diff --git a/hello.c b/hello.c new file mode 100644 index 0000000..a315ad1 --- /dev/null +++ b/hello.c @@ -0,0 +1,8 @@ +#include + +int main() +{ + +printf("I am Trying to learn something"); +return 0; +}