Skip to content

Comments

Added Program for 'Binary Numbers'#448

Open
Manasi2001 wants to merge 1 commit intoDeveloper-Student-Clubs-VSSUT-Burla:mainfrom
Manasi2001:issue-411
Open

Added Program for 'Binary Numbers'#448
Manasi2001 wants to merge 1 commit intoDeveloper-Student-Clubs-VSSUT-Burla:mainfrom
Manasi2001:issue-411

Conversation

@Manasi2001
Copy link
Contributor

I've added the complete program with proper comments, example and explanations. @rcoder23 please check out this PR with reference to issue #411.

@i-tick i-tick added the GSSoC21 Girlscript summer of code label Jun 9, 2021

'''

n = int(input()) # getting input
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add input message

Comment on lines +28 to +30
2
Explaination:
The binary representation of 13 is 1101, so the maximum number of consecutive 1's is 2.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also print binary representation of number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSSoC21 Girlscript summer of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants