Given Two numbers A & B (lets say).Find the smaller number,
B(assuming). Divide the larger number by the smaller one.Get the value
stored in X (lets say). Then use % operator to get the value stored in
Y(lets say).

Now the answer-  ((X-1) * B) + Y

Now again '-' operator cannot be used

so, my solution- ((X+strcmp("a","b")) * B) + Y   [strcmp() will return
-1]

Regards,
Rajan Bhuyan
B.E(Hons) Computer Science
BITS Pilani

-- 
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?hl=en.

Reply via email to