make into bits and then using logic operators. but this kind of problem
sucks.
the good way is
let A and B are the numbers
string s(A,'*'),p(B,'*');
s.append(p);
printf(" %d + %d=%d",A,B,s.size());
2009/9/7 ritter <[email protected]>
>
> how to add two integers without using arithmetic operators?
> can anyone help me.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---