A pot of gold at the end of the rainbow
> i try to write this problem in c++ but didn't work can somebody please help me with this
Well post it, then we can really start to help you rather than do the work for you (which isn't going to happen), or we make wild guesses as to what your question really is.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005