Value of Shares
Table Showing Cost of Shares
for ($shares = 1; $shares <= 20; $shares++){
$cost = $shares * 20;
echo "The cost of $shares share/s is $cost #x0024s ","\n";
$dividend = $cost * 0.10;
echo "The dividend is $dividend #x0024s " ,"\n";
}
?>