All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Logic
Professor and Students (Posted on 2003-04-28) Difficulty: 4 of 5
A Professor asked four students how long each of them had been studying.

One of the students replied: “We have all been studying a whole number of years, the sum of our years of studying is equal to the number of years you have been teaching and the product of our years of studying is 180”.

“I’m sorry”, replied the Professor after some thought, “but that doesn’t give me enough information”.

“Yes, you’re right”, agrees another of the students. “But if we told you that one of us were into double figures in our years of study, then you could surely answer your question”.

How long had each of the four been studying ?

See The Solution Submitted by Ravi Raja    
Rating: 3.0000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re(3): well -- the computer language | Comment 8 of 10 |
(In reply to re(2): well -- the computer language by DJ)

It probably is not still in popular use, as MicroSoft doesn't include it with today's systems, but it has its officionados, as it gets the work done. Actually QuickBasic is a bit different from QBASIC. QuickBasic was sold as a separate commercial package and could produce .EXE files if called upon to do so. QBASIC came later, using the same syntax, but was a purely interpretive language, and ran about 5 times slower, and was included with the later versions of DOS. Windows brought Visual Basic, which up through version 6.0 had quite similar syntax, minor variations being in using a format function instead of a using option on its print method, and a lack of a paint (floodfill) command in its graphics set, and lack of a DATA statement for internal initialization of arrays. I understand Visual Basic .net is quite different altogether.
  Posted by Charlie on 2003-05-03 04:43:16

Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (4)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information