LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-30-2012, 07:08 AM   #1
rpittala
LQ Newbie
 
Registered: Jan 2012
Location: BANGALORE
Posts: 27

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.
(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 ?
 
Old 01-30-2012, 07:13 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
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
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
deleted
 
Old 01-30-2012, 05:11 PM   #4
ydoom
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
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,029
Blog Entries: 52

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


Reply


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 12:56 PM.

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