Re: Math problem (222)
| From: | Chris Hewitt | Date: | Wed, 02 Oct 2002 18:41:09 +0000 |
| Subject: | Re: Math problem (222) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118632@lists.php.net to get a copy of this message | ||
tony@tabzilla.com wrote:
errors, but it doesnt do what i want it to do - instead of returning any three digit combo that doesnt return 222, it just prints EVERY combo whice passes my conditional statement to weed out numbers that have digits where 2 or more are the same. I can't write bug-free code first time either. I have had to learn to debug. In this case I would start just before your line...
if ($answer != 222) { ...and put in "echo $answer" to see what number it actually has.HTH Chris