Inputting Binary numbers in C

Joined
Mar 16, 2007
Messages
1
Reaction score
0
Hi, I am new to C and have completed a few simple exercises.
I want to know how I would go about writing a program which asks the user to enter 2 two-bit numbers e.g. the user would have to enter 01 for 1 and 00 for 0 and have the program add it together. I am stuck and would appreciate the help - this is meant to be a simple task yet I am having trouble getting my head around it.

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top