how to write an algorithm that converts deceimal to binary, using mod , div and an array to display the answer
Daneil
0
Newbie Poster
Recommended Answers
Jump to PostWhat have you attempted so far?
Jump to PostHere's a simple function that uses pow and outputs a char array(string). Basically it checks if the value is greater than or equal to 2 raised to the power of the loop counter. If so set the character at the opposite end of the char array to 1 and decrement …
All 6 Replies
L7Sqr
227
Practically a Master Poster
tinstaafl
1,176
Posting Maven
Daneil
0
Newbie Poster
tinstaafl
1,176
Posting Maven
Daneil
0
Newbie Poster
tinstaafl
1,176
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.