If a variable named $carsSold contains the value 8, What is stored in $bonus after this code is processed?
if ($carsSold < 10)
$bonus = 0.00;
if ($carsSold < 20)
$bonus = 100.00;
else
$bonus = 200.00;
a. 0.00
b. 100.00
c. 200.00
which one is the answer? why? can someone please explain this to me? thank!!
if ($carsSold < 10)
$bonus = 0.00;
if ($carsSold < 20)
$bonus = 100.00;
else
$bonus = 200.00;
a. 0.00
b. 100.00
c. 200.00
which one is the answer? why? can someone please explain this to me? thank!!