cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Question about Odometer Program
Question about Odometer Program
Nov 19, 2011 at 3:18am UTC
sweezy
(20)
I need to write a program that displays 1 million 6 digit odometer readings using NESTED Looping. I need to find out how many 6 digit odometers there are that are 'special' I'm guessing special means numbers that repeat? like 33 ? any help?
Nov 19, 2011 at 1:39pm UTC
andywestken
(4094)
'special' seems a bit vague a term. Is 123456 special, too? 123123? 112233? Prime numbers? Triangular numbers? ...
Or even 123050? (Stroustrup was born December 30, 1950)
It's a bit strange that you weren't given an actual definition of 'special'?
Andy
P.S. You're supposed to change your old every 3000 miles. So 3000, 6000, 9000, ... could be special?
Topic archived. No new replies allowed.