You are on page 1of 20

DOCENTE: ING ROMEL A.

ALFEREZ VILCA
SEMESTRE: VI
UNIDAD DIDACTICA: TALLER DE PROGRAMCION WEB
ESTUDIANTE: MICHAEL G. VILCA GARCIA

AYAVIRI-MELGAR-PUNO
2021
TRABAJO ENCARGADO EN PHP
 TABLA DE MULTIPLICACIÓN CON DOWHILE:

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>TABLA MICHAEL CON DOWHILE</title>

</head>

<body>

<table border="2px" bgcolor="4FD7E0">

<tr>

<td colspan="12"> <center>TABLA MICHAEL DE MULTIPLICACION CON DOWHILE</center> </td>

</tr>

<tr>

<th> TABLA DEL 1</th>

<th> TABLA DEL 2</th>

<th> TABLA DEL 3</th>


<th> TABLA DEL 4</th>

<th> TABLA DEL 5</th>

<th> TABLA DEL 6</th>

<th> TABLA DEL 7</th>

<th> TABLA DEL 8</th>

<th> TABLA DEL 9</th>

<th> TABLA DEL 10</th>

<th> TABLA DEL 11</th>

<th> TABLA DEL 12</th>

</tr>

<tr>

<?php

$t=1;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=2;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;
}

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=3;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=4;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

{
}

?>

</tr>

<tr>

<?php

$t=5;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=6;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>
</tr>

<tr>

<?php

$t=7;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=8;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php
$t=9;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=10;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=11;

$i=1;

do{
$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

<tr>

<?php

$t=12;

$i=1;

do{

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

while ($i<=12);

?>

</tr>

</table>

</body>

</html>
 TABLA DE MULTIPLICACIÓN CON FOR:

<! DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>TABLA CON FOR</title>

</head>

<body>

<table border="2px" bgcolor="B019A4">

<tr>

<td colspan="12"> <center>TABLA DE MICHAEL MULTIPLICACION CON FOR</center> </td>

</tr>

<tr>

<th> TABLA DEL 1</th>

<th> TABLA DEL 2</th>

<th> TABLA DEL 3</th>

<th> TABLA DEL 4</th>

<th> TABLA DEL 5</th>

<th> TABLA DEL 6</th>


<th> TABLA DEL 7</th>

<th> TABLA DEL 8</th>

<th> TABLA DEL 9</th>

<th> TABLA DEL 10</th>

<th> TABLA DEL 11</th>

<th> TABLA DEL 12</th>

</tr>

<tr>

<?php

$t=1;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=2;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=3;

for ($i=1; $i <=12 ; $i++)

{
$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=4;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=5;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=6;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";


}

?>

</tr>

<tr>

<?php

$t=7;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=8;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=9;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>
</tr>

<tr>

<?php

$t=10;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=11;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>

<tr>

<?php

$t=12;

for ($i=1; $i <=12 ; $i++)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

?>

</tr>
</table>

</body>

</html>
 TABLA DE MULTIPLICACIÓN CON WHILE:

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>TABLA MICHAEL CON WHILE</title>

</head>

<body>

<table border="2px" bgcolor="15D115">

<tr>

<td colspan="12"> <center>TABLA MICHAEL DE MULTIPLICACION CON WHILE</center> </td>

</tr>

<tr>

<th> TABLA DEL 1</th>

<th> TABLA DEL 2</th>

<th> TABLA DEL 3</th>

<th> TABLA DEL 4</th>


<th> TABLA DEL 5</th>

<th> TABLA DEL 6</th>

<th> TABLA DEL 7</th>

<th> TABLA DEL 8</th>

<th> TABLA DEL 9</th>

<th> TABLA DEL 10</th>

<th> TABLA DEL 11</th>

<th> TABLA DEL 12</th>

</tr>

<tr>

<?php

$t=1;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=2;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>
</tr>

<tr>

<?php

$t=3;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=4;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=5;

$i=1;

while ($i<=12)

$tabla=$t*$i;
echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=6;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=7;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=8;
$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=9;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=10;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>
</tr>

<tr>

<?php

$t=11;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

<tr>

<?php

$t=12;

$i=1;

while ($i<=12)

$tabla=$t*$i;

echo "<th> <center> $t*$i = $tabla </center> </th>";

$i++;

?>

</tr>

</table>

</body>

</html>

You might also like