Advertisement
idsystems

PHP_Ejercicio 13

Jan 18th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <! 13_Ejer01.php
  2. Ejericio resuelto:
  3. Escribe un script en el que se escriba la tabla de multiplicar del 7 sin usar bucles
  4. Por: Lic. Sergio Hugo Sanchez O.
  5. Para: Universidad Matamoros
  6. 17, Mayo, 2009 >
  7.  
  8. <html>
  9.  
  10. <head>
  11.   <title>Ejercicio 01. Tabla de Multiplicar del 7</title>
  12. </head>
  13.  
  14. <body>
  15. <h1>Ejercicio 01. Tabla de Multiplicar del 7</h1>
  16. <?php
  17.  
  18. $a = 7;
  19. echo "Tabla de Multiplicar del 7 ", "<br>";
  20.  
  21. echo "7 x 1 = ", $a * 1, "<br>";
  22. echo "7 x 2 = ", $a * 2, "<br>";
  23. echo "7 x 3 = ", $a * 3, "<br>";
  24. echo "7 x 4 = ", $a * 4, "<br>";
  25. echo "7 x 5 = ", $a * 5, "<br>";
  26. echo "7 x 6 = ", $a * 6, "<br>";
  27. echo "7 x 7 = ", $a * 7, "<br>";
  28. echo "7 x 8 = ", $a * 8, "<br>";
  29. echo "7 x 9 = ", $a * 9, "<br>";
  30. echo "7 x 10 = ", $a * 10, "<br>";
  31.  
  32. ?>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement