Skip to content

Conversation

@Suraj-Patro
Copy link
Contributor

@Suraj-Patro Suraj-Patro commented Oct 30, 2020

Description of Change

Improve Output formatting.
Fix upper/lower formatting.

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Comment on lines +21 to +30
printf("\t\tConverter Decimal --> Binary\n\n");

// reads a decimal number from the user.
printf("\nenter a positive integer number: ");
printf("\nEnter a positive integer number: ");
scanf("%d", &inputNumber);

// make sure the input number is a positive integer.
if (inputNumber < 0)
{
printf("only positive integers >= 0\n");
printf("Only positive integers >= 0\n");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improve Output formatting.
lower/upper formatting fixed.

printf("0");
}

printf("\n");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improve Output formatting.
lower/upper formatting fixed.

@Suraj-Patro Suraj-Patro changed the title Update decimal_to_binary.c Improve source code formatting formatting at conversions/decimal_to_binary.c Oct 31, 2020
@Suraj-Patro Suraj-Patro closed this Mar 9, 2021
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.

1 participant