Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <html>
  2.  
  3. <link rel="stylesheet" href="CSS/estilo.css">
  4.  
  5. <body>
  6.  
  7. <form method="post">
  8.  
  9. <h1>Promedio De Calificaciones</h1>
  10.  
  11.  
  12. <hr><br>
  13.  
  14. <h3>¿Cuantas Calificaciones Tienes? </h3><input type="number" name="nump">
  15.  
  16. <input type="submit" value="Ingresar" class="boton">
  17.  
  18. </form>
  19.  
  20. <?php
  21.  
  22. for($i=0; $i<$_POST['nump']; $i++){
  23.  
  24. echo '<h4>Ingresa la Calificacion: </h4>';
  25.  
  26. echo "<input type='number' name='num'/> <br><br>";
  27.  
  28. }
  29. $total = $_REQUEST['numero1']+$_REQUEST['numero2'];
  30.  
  31. echo "El total de la suma es: ".$total;
  32.  
  33. echo "<input type='submit' class='boton' value='Promedio'/>";
  34.  
  35. echo 'El promedio es: '.$promedio;
  36. ?>
  37.  
  38. </body>
  39.  
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement