hey there i find it difficult to write pseudocode of two stacks that sum two binary numbers and print the answer i can use a third stack for help. for example S1 is 11001110 and S2 101010 the answer will print 11111000 please help me with that
sami saba 0 Newbie Poster
Recommended Answers
Jump to PostWhat have you tried so far?
Do you have more specific instructions? What is supposed to go into the stacks? I would guess digits.
You'll need to track some extra data, but you shouldn't need a whole third stack.
All 4 Replies
gusano79 247 Posting Shark
janissantony 15 Light Poster
gusano79 247 Posting Shark
Taywin 312 Posting Virtuoso
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.