Advertisement
Guest User

Untitled

a guest
Aug 27th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. if ( !empty($_GET["v"]) ) {
  3.     $valor = $_GET["v"];
  4.     $rq = sqrt($valor);
  5.     echo "Raiz quadrada de $valor = " .number_format($rq,2);
  6. }
  7. ?>
  8.  
  9. <div>
  10.     <form method="get" action="ModeloPHP.php">
  11.         VALOR: <input type="number" name="v"/>
  12.         <input type="submit" value="Calcular Raiz"/>
  13.  
  14.     </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement