@pawan4angel If you have any ideas on how the OP should think through the problem and work towards a solution that would be good. Maybe a few short code samples to show some ideas with explanations...
Type: Posts; User: Norm
@pawan4angel If you have any ideas on how the OP should think through the problem and work towards a solution that would be good. Maybe a few short code samples to show some ideas with explanations...
You need to make a list of all the tests to be done to solve the problem and then write the code for each one and test it.
It looks like the code makes the same test two times????
--- Update...