Here's one problem:
Code:
#14
do {
for ($c == -10,$c <= 10,$c++);
} while($b != $c);
if ($b != $c) {
print "You didn't enter a value between -10 and 10! DO SO1\n";
$b = <STDIN>;
}
If $b is not == $c your code never gets to the if($b != $c) section. Also, since you will forever do the do-while loop untill such time as $b == $c you don't need the if($b != $c) section at all.
Last, since you've made no provision for the person entering something NOT between -10 and 10 if they do enter something outside that range you will enter an infinite loop at your do-while statement.
Bookmarks