際際滷

際際滷Share a Scribd company logo
<?php
$r=1;
do
{
echo $r."<br>";
$r++;
}while($r<=10);
//ciclo while
echo "<hr>";
$p=1;
while($p<=10)
{
echo $p."<br>";
$p=$p+1;
}
echo "<hr>";
// ciclo for
for($x=1;$x<=10;$x++)
{
echo $x."<br>";
}
?>

More Related Content

Dispositivos 4B