[PR #367] [CLOSED] Added : conversion of Decimal Integer to BCD #725

Closed
opened 2026-01-29 15:14:50 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/367
Author: @KaProDes
Created: 10/7/2019
Status: Closed

Base: masterHead: patch-2


📝 Commits (10+)

  • 1e5afcc updated README.md
  • 80997b9 updated CodingGuidelines.md
  • 89069e2 updated CodingGuidelines.md
  • 4cd255d updated shellSort.c
  • 69a263b 7.c :reverse of a number with overflow check added
  • 19c2e93 9.c :pallindrome of a number with overflow check added
  • 15f4fb1 README.md updated
  • 59f998e 8.c: atoi implemented(used long int)
  • cd05073 updated 7.c and 9.c
  • 42d4fb5 Solution for "2. Add Two Numbers"

📊 Changes

18 files changed (+812 additions, -112 deletions)

View changed files

CodingGuidelines.md (+0 -19)
📝 README.md (+15 -1)
cipher/rc4.c (+189 -0)
conversions/decimal_to_bcd.c (+28 -0)
data_structures/binary_trees/splay_tree.c (+138 -0)
📝 exercism/hello-world/hello_world.c (+7 -5)
📝 leetcode/README.md (+8 -1)
leetcode/src/2.c (+43 -0)
leetcode/src/21.c (+56 -0)
leetcode/src/28.c (+37 -0)
leetcode/src/4.c (+29 -0)
leetcode/src/7.c (+53 -0)
leetcode/src/8.c (+75 -0)
leetcode/src/9.c (+71 -0)
📝 project_euler/Problem 07/sol.c (+5 -1)
📝 searching/LinearSearch.c (+21 -17)
📝 sorting/BubbleSort.c (+6 -6)
📝 sorting/shellSort.c (+31 -62)

📄 Description

Any Integer can be converted to it's BCD equivalent.
Ex : If 22 is entered, the BCD quivalent is 0010_1001 i.e. 39 in decimal.

  • The program will therefore output:
  • TrueBCD form : 101001
  • BCD form's decimal equivalent : 39

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/367 **Author:** [@KaProDes](https://github.com/KaProDes) **Created:** 10/7/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-2` --- ### 📝 Commits (10+) - [`1e5afcc`](https://github.com/TheAlgorithms/C/commit/1e5afcc8e0d863d267e62a4c00b1f86d42000883) updated README.md - [`80997b9`](https://github.com/TheAlgorithms/C/commit/80997b94b08556fa9296aebe1777550ef95b03c3) updated CodingGuidelines.md - [`89069e2`](https://github.com/TheAlgorithms/C/commit/89069e2d5ece298489b2d5e3f34b7f891bde8882) updated CodingGuidelines.md - [`4cd255d`](https://github.com/TheAlgorithms/C/commit/4cd255d2902f000c10c54d81dbbb08062bda31ca) updated shellSort.c - [`69a263b`](https://github.com/TheAlgorithms/C/commit/69a263be3fa2b4f30bcb02ca90166a323dc5ce8c) 7.c :reverse of a number with overflow check added - [`19c2e93`](https://github.com/TheAlgorithms/C/commit/19c2e9369d32f41b10b2f7f50462352c3911c077) 9.c :pallindrome of a number with overflow check added - [`15f4fb1`](https://github.com/TheAlgorithms/C/commit/15f4fb19868ddf19723169223b7d1ad68fbfc0c6) README.md updated - [`59f998e`](https://github.com/TheAlgorithms/C/commit/59f998e13fb756743e077aa7e0f4afca92a085f2) 8.c: atoi implemented(used long int) - [`cd05073`](https://github.com/TheAlgorithms/C/commit/cd05073f1124ff92712bb89fd49f0f600d2f9fd0) updated 7.c and 9.c - [`42d4fb5`](https://github.com/TheAlgorithms/C/commit/42d4fb57415a05f20d3b1c4c4b786465a8276e63) Solution for "2. Add Two Numbers" ### 📊 Changes **18 files changed** (+812 additions, -112 deletions) <details> <summary>View changed files</summary> ➖ `CodingGuidelines.md` (+0 -19) 📝 `README.md` (+15 -1) ➕ `cipher/rc4.c` (+189 -0) ➕ `conversions/decimal_to_bcd.c` (+28 -0) ➕ `data_structures/binary_trees/splay_tree.c` (+138 -0) 📝 `exercism/hello-world/hello_world.c` (+7 -5) 📝 `leetcode/README.md` (+8 -1) ➕ `leetcode/src/2.c` (+43 -0) ➕ `leetcode/src/21.c` (+56 -0) ➕ `leetcode/src/28.c` (+37 -0) ➕ `leetcode/src/4.c` (+29 -0) ➕ `leetcode/src/7.c` (+53 -0) ➕ `leetcode/src/8.c` (+75 -0) ➕ `leetcode/src/9.c` (+71 -0) 📝 `project_euler/Problem 07/sol.c` (+5 -1) 📝 `searching/LinearSearch.c` (+21 -17) 📝 `sorting/BubbleSort.c` (+6 -6) 📝 `sorting/shellSort.c` (+31 -62) </details> ### 📄 Description Any Integer can be converted to it's BCD equivalent. Ex : If 22 is entered, the BCD quivalent is 0010_1001 i.e. 39 in decimal. - The program will therefore output: - TrueBCD form : 101001 - BCD form's decimal equivalent : 39 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:14:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#725