Skip to content

Instantly share code, notes, and snippets.

@dilakv
Created February 5, 2021 13:01
Show Gist options
  • Save dilakv/517a05bb5b590ecd1f5f89a27be57790 to your computer and use it in GitHub Desktop.
Save dilakv/517a05bb5b590ecd1f5f89a27be57790 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Curso - PHP - While</title>
</head>
<body>
<?php
# Estructuras Repetitivas
# While
/*
echo "<br/> $numero * 1 = " . $numero * 1;
echo "<br/> $numero * 2 = " . $numero * 2;
echo "<br/> $numero * 3 = " . $numero * 3;
echo "<br/> $numero * 4 = " . $numero * 4;
echo "<br/> $numero * 5 = " . $numero * 5;*/
$numero = 37;
$i = 1;
while ($i <= 20) {
echo "<br/> $numero * $i = " . $numero * $i;
$i += 1;
}
echo "<br/>Finalizada la tabla de multiplicar";
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment