martes, 2 de marzo de 2010

Tabla de multiplicar de 10*10 en PHP


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Ejercicio A</title>
</head>

<body>
<p align="center">TABLA DEL 10 * 10</p>
<?php
$a1=0;
$x1=0;
$b1=10;
?>

<table align="center">
<?php
for($a1=1;$a1<=10;$a1++)
{
echo"<tr>";
for($x1=1;$x1<=10;$x1++){
echo"<td>";
echo $x1*$a1;
echo"</td>";
}
echo"</tr>";
}
?>
</table>
</body>
</html>

3 comentarios:

  1. esto si k m sirvio !!! seguire accediendo a ste blog !!!......

    ResponderEliminar
  2. esta pregunmta vino en mi examen !!! gracias d vdd !!!.........

    ResponderEliminar
  3. muchas gracias.....pero tengo una duda se pidría pintar un ahedrez con la tabla...??

    ResponderEliminar