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 ?
(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 |