Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary table #6

Open
emrerenJs opened this issue Jul 24, 2022 · 2 comments
Open

Binary table #6

emrerenJs opened this issue Jul 24, 2022 · 2 comments
Assignees

Comments

@emrerenJs
Copy link
Collaborator

emrerenJs commented Jul 24, 2022

Write a program that gives a binary number depends on a N column.

  • Take N value from console
  • Give a binary table to console output.

Example Binary Table (2 columns):
0 0
0 1
1 0
1 1

For example:
N : 3
Output :
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

For example :
N : 5
Output :
0 0 0 0 0
0 0 0 0 1
0 0 0 1 0
0 0 0 1 1
0 0 1 0 0
..
1 1 1 1 1

Difficulty : 10/4

@HusnaSari
Copy link
Owner

HusnaSari commented Jul 25, 2022

Eta : Two and half hours (2.5 Hours)

@HusnaSari
Copy link
Owner

Eta: 2 hours

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

When branches are created from issues, their pull requests are automatically linked.

2 participants