Skip to content

Commit

Permalink
indent to make the constraing more apparent
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed May 12, 2024
1 parent 56447e1 commit d941cd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/warm-up/print-binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Print `argv[1]` in binary (assume it is a correct positive decimal number
that will fit `unsigned int`) to standard output.
Note that `printf`(3) does not have a conversion specifier for it (unlike 'x'
for hexa and 'o' for octal). Limit the input to positive `int`s.

Do not use bit operators even if you know how to (ie. do NOT use `>>` etc.)

To verify, use bc(1) with `obase=2`. E.g.:
Expand Down Expand Up @@ -41,5 +42,3 @@ E4
```

#solution print-in-binary.c


0 comments on commit d941cd4

Please sign in to comment.