Divide by 7

D

Darius

Is it possible to divide an unsigned int by 7 without using any
arithmetic operator?
 
E

Eric Sosman

Darius said:
Is it possible to divide an unsigned int by 7 without using any
arithmetic operator?

Yes.

(I'm sure your teacher will reward you for this
correct answer. Aren't you glad you asked?)
 
T

Thomas Matthews

Darius said:
Is it possible to divide an unsigned int by 7 without using any
arithmetic operator?
If you searched the newsgroups first, you would have
found it.


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 
D

Darius

Eric said:
Yes.

(I'm sure your teacher will reward you for this
correct answer. Aren't you glad you asked?)

i'll search this in the newgroup, that's ok, i accept my mistake.
But it is not my assingment, i came across this question on internet,
tried to solve it, but couldn't get it. that's why i am asking, it will
be helpful if instead of pulling my leg, you could give me the link to
the solution.
thanks in advance, no hard feelings, :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top