Skip to content

Hw-1#163

Open
dariiabutorina wants to merge 3 commits into
mate-academy:masterfrom
dariiabutorina:hw-1
Open

Hw-1#163
dariiabutorina wants to merge 3 commits into
mate-academy:masterfrom
dariiabutorina:hw-1

Conversation

@dariiabutorina

Copy link
Copy Markdown

Task 3


while (decimal > 0) {
int remaining = decimal % 2;
valueToBinary.append(remaining);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
valueToBinary.append(remaining);
valueToBinary.append(decimal % 2);

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants