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 <amar8...@gmail.com> > > 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 algogeeks@googlegroups.com To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---