SlideShare a Scribd company logo
1 of 1
<?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

What's hot

What's hot (20)

Full story board - Adaptation
Full story board - AdaptationFull story board - Adaptation
Full story board - Adaptation
 
Img 0008
Img 0008Img 0008
Img 0008
 
Validaformulariojs
ValidaformulariojsValidaformulariojs
Validaformulariojs
 
Lesson11
Lesson11Lesson11
Lesson11
 
Yesodでhello world
Yesodでhello worldYesodでhello world
Yesodでhello world
 
Test
TestTest
Test
 
Draw frame
Draw frameDraw frame
Draw frame
 
Dij
DijDij
Dij
 
fungsi
fungsifungsi
fungsi
 
数式を構文解析した話
数式を構文解析した話数式を構文解析した話
数式を構文解析した話
 
Estabilidad nambrard
Estabilidad nambrardEstabilidad nambrard
Estabilidad nambrard
 
Análisis de Redes de Corriente Alterna
Análisis de Redes de Corriente AlternaAnálisis de Redes de Corriente Alterna
Análisis de Redes de Corriente Alterna
 
Roving frame
Roving frameRoving frame
Roving frame
 
Exercicis polinomis
Exercicis polinomisExercicis polinomis
Exercicis polinomis
 
C language program
C language programC language program
C language program
 
Diploma microfiche training
Diploma   microfiche trainingDiploma   microfiche training
Diploma microfiche training
 
Ejercicios de algebra de boole
Ejercicios de algebra de booleEjercicios de algebra de boole
Ejercicios de algebra de boole
 
MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話
MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話
MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話
 
8NE Jeremy Kyle Homework Diya
8NE Jeremy Kyle Homework Diya8NE Jeremy Kyle Homework Diya
8NE Jeremy Kyle Homework Diya
 
Blow room specifications
Blow room specificationsBlow room specifications
Blow room specifications
 

Dispositivos 4B