LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to find the 1 number out of 10 numbers, if I have taken 9 numbers from my brain ? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-the-1-number-out-of-10-numbers-if-i-have-taken-9-numbers-from-my-brain-926486/)

rpittala 01-30-2012 08:08 AM

how to find the 1 number out of 10 numbers, if I have taken 9 numbers from my brain ?
 
Hi All,
If I have 10 numbers in my brain and I have taken 9 numbers out of my brain except one number.what is that number(remaining number) ? and write a program for that.
(or)
I have 10 bolls numbering 1,2,...10 in a bag and I have taken 9 bolls out of 10 what is the number of the remaining ball ?

corp769 01-30-2012 08:13 AM

Smells like homework to me... Not to put you on the spot, but we will assist with, not do your homework for you. What have you come up with so far?

Cedrik 01-30-2012 08:28 AM

deleted

ydoom 01-30-2012 06:11 PM

If all numbers are different, then the remaining number is the one not "taken off".

You're welcome.

brianL 01-30-2012 06:40 PM

No idea. My brain isn't big enough to hold 10 numbers.


All times are GMT -5. The time now is 06:52 PM.