Keep adding the digits till you are reduced to single digit. Then check if it 
is 3, 6 or 9




________________________________
From: richa gupta <richa.cs...@gmail.com>
To: programming-puzzles <programming-puzz...@googlegroups.com>; algogeeks 
<algogeeks@googlegroups.com>
Sent: Friday, 14 August, 2009 1:15:13 PM
Subject: [algogeeks] Check divisibility by 3


can we check the divisibility of a given number by 3 withoutusing
operators like '/' or '%'.
I want the efficient solution to this problem ..

can someone help ??
-- 
Richa Gupta
(IT-BHU,India)



      See the Web&#39;s breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to