In Class Assignment
while ($k >= 1) {
echo $k;
$k–;
}
if ($k == 1) {
echo ‘$k in the hosue!’;
} elseif ($k < 1) {
echo “small k”;
} else {
echo “No k”;
}
Create a loop that checks to see if an number is even or odd and prints the value and the type (even/odd) counting down from 10.
Due next Thursday at start of class. This can be submitted alongside your Homework 1 submission or independently.