Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <link rel="stylesheet" href="CSS/estilo.css">
- <body>
- <form method="post">
- <h1>Promedio De Calificaciones</h1>
- <hr><br>
- <h3>¿Cuantas Calificaciones Tienes? </h3><input type="number" name="nump">
- <input type="submit" value="Ingresar" class="boton">
- </form>
- <?php
- for($i=0; $i<$_POST['nump']; $i++){
- echo '<h4>Ingresa la Calificacion: </h4>';
- echo "<input type='number' name='num'/> <br><br>";
- }
- $total = $_REQUEST['numero1']+$_REQUEST['numero2'];
- echo "El total de la suma es: ".$total;
- echo "<input type='submit' class='boton' value='Promedio'/>";
- echo 'El promedio es: '.$promedio;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement