URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       techsuns
  HTML https://techsuns.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Programming Questions
       *****************************************************
       #Post#: 194--------------------------------------------------
       Do you know how to add two positive integers then do this.......
       ..........
       By: kranthipls Date: November 25, 2012, 10:27 pm
       ---------------------------------------------------------
       Write a C program to find sum of positive integers without using
       any operator. Only use of printf() is allowed. No other library
       function can be used.
       Just keep posting your ideas so that there will be some
       discussion around..........
       #Post#: 198--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kpr29 Date: November 26, 2012, 12:40 am
       ---------------------------------------------------------
       @Kranthi: Can we use operator inside the printf
       function............
       #Post#: 201--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kranthipls Date: November 26, 2012, 3:07 am
       ---------------------------------------------------------
       No operator means no operator throughout the program. That's it.
       #Post#: 204--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kpr29 Date: November 26, 2012, 4:36 am
       ---------------------------------------------------------
       @Kranthi: Got the hint............ The return value of the
       printf statement is the clue Actually dada cracked it.........
       Instead of "+" how about "*" operator
       #Post#: 211--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kranthipls Date: November 26, 2012, 10:24 pm
       ---------------------------------------------------------
       Please write the code here..............It should be small isn't
       it???
       #Post#: 213--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kpr29 Date: November 27, 2012, 12:10 am
       ---------------------------------------------------------
       @Kranthi: printf("%d", printf("%*c%*c", a,'\r', b,'r'));
       #Post#: 217--------------------------------------------------
       Re: Do you know how to add two positive integers then do this...
       ..............
       By: kranthipls Date: November 27, 2012, 3:35 am
       ---------------------------------------------------------
       correct...............
       *****************************************************