Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2012, 07:08 AM   #1
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 47
Blog Entries: 1

Rep: Reputation: Disabled
Question 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.
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 ?
Old 01-30-2012, 07:13 AM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
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?
1 members found this post helpful.
Old 01-30-2012, 07:28 AM   #3
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Old 01-30-2012, 05:11 PM   #4
LQ Newbie
Registered: Jan 2012
Posts: 11

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

You're welcome.
Old 01-30-2012, 05:40 PM   #5
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
No idea. My brain isn't big enough to hold 10 numbers.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] find the total of numbers that are higher than x in a text file with numbers (using awk??) Mike_V Programming 12 11-24-2010 09:51 AM
Get a number between two numbers question HarryBoy Programming 11 02-02-2010 11:46 AM
How to filter out number of lines which are not constant in numbers. manya Programming 7 12-31-2009 06:25 PM
sequence of numbers, how to extract which numbers are missing jonlake Programming 13 06-26-2006 03:28 AM
max number multicast addresses and port numbers tara Programming 2 11-20-2005 05:53 PM

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration