ده التاسك بتاعى
- الكود:
mahmoud metwally
$x=5;
$y=4;
echo "[color=red]first number is =".$x."
second number is =".$y."";
echo "[color=blue]
the sum is ".sum();
echo "
the sub is ".sub();
echo "
the mul is ".mul();
echo "
the Div is ".div();
echo "
the mod is ".mod();
//echo "
the sub is ".sub();
function sum()
{
global $x,$y;
$z=$x+$y;
return $z;
}
function sub()
{
global $x,$y;
$z=$x-$y;
return $z;
}
function mul()
{
global $x,$y;
$z=$x*$y;
return $z;
}
function div()
{
global $x,$y;
$z=$x/$y;
return $z;
}
function mod()
{
global $x,$y;
$z=$x%$y;
return $z;
}
?>
[/color][/color][color=red][color=blue]
[/color][/color]
وعايز اشوف اراء الناس ولو فى طريقة اسهل الناس تقول برده