0
Decimal to Binary
I want to write a program in C to convert Decimal to Binary. Is there any hint? All help is appreciated. Thanks.
5 Antworten
+ 3
What do you mean any hint? If you know how to convert on paper it should be fairly easy to code
+ 2
Duy Khuong
1.Store the remainder when the number is divided by 2 in an array.
2.Divide the number by 2
3.Repeat the above two steps until the number is greater than zero.
4.Print the array in reverse order now.
+ 1
For more hints post your code
0
Well thanks you all guys, just figured it out while offline. Many thanks <3 <3
0
You can search in the codeplay section