Print.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Assignment043</title>
<style>
table
{
margin:auto;
}
td
{
border: 1px solid black;
}

</style>

</head>

<body>
<p>Mr.G likes to spend all the money they give him on his friends. When he goes to the mall he spends at least 200 dollars, but once he has only 120 dollars, he buys himself some shoes.<br>
<br>
<p>But this time he also wants a shirt and he need and extra 10 dollars.</p>

</p>
<table>
<?php
$dollars 
200;
Do 
{
echo 
"<tr><td>";  

echo 
"Hey, friend, I got some cash! ";
echo 
" I have ".$dollars." dollars!"

echo 
"</tr></td>";   

$dollars=$dollars-10;
    if (
$dollars==130)
    {
        break;
    }
}
while (
$dollars 120) ;

if (
$dollars == 120)
{
    echo 
"<tr><td>";
    echo 
"Yeah, time for some shoes!";
    echo 
"</td></tr>";
}
else
{
    echo 
"<tr><td>";
    echo 
"Yeah, time for some shoes and a shirt!";
    echo 
"</td></tr>";
}

?>


</table>



</body>
</html>