Quote:
Originally Posted by
manubatham20
I have already given a code snippet above. You can use that to test.
Posting a program which
doesn't do what you want cannot tell us what you
do want. The computer can't tell your intent from it, neither can we.
The complete lack of example input and example output makes it even harder to guess. We need to see what
success would look like, what you actually
want.
Please post some of the input you have, and some of the
output you want -- not the bad output, what
good output would look like, so we don't have to guess what you want.
Without that, getting the answer you want from anyone is a matter of pure luck.