Universidad Autónoma de Tlaxcala
Facultad de ciencias básicas
ingeniería y tecnología.
Ingeniería de computación.
Diseño de Aplicaciones Web
3° B
Alumna Dulce Gabriela Hernández López
Código:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>While 1</title>
</head>
<body>
<h1>
<center>Ejercicio while 1</center>
</h1><br>
<h3>Realizar un while en php que haga un conteo en decrecimiento de 50 a
40, de uno en uno.</h3><br>
Codigo:<br>
?php<br>
$a = 50;<br>
while ($a > 40) {<br>
echo $a, PHP_EOL;<br>
$a = $a - 1;<br>
}<br>
echo $a, PHP_EOL;<br>
?<br>
Facultad de ciencias básicas
ingeniería y tecnología.
Ingeniería de computación.
Diseño de Aplicaciones Web
3° B
Alumna Dulce Gabriela Hernández López
Código:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>While 1</title>
</head>
<body>
<h1>
<center>Ejercicio while 1</center>
</h1><br>
<h3>Realizar un while en php que haga un conteo en decrecimiento de 50 a
40, de uno en uno.</h3><br>
Codigo:<br>
?php<br>
$a = 50;<br>
while ($a > 40) {<br>
echo $a, PHP_EOL;<br>
$a = $a - 1;<br>
}<br>
echo $a, PHP_EOL;<br>
?<br>