Last active
September 3, 2019 15:18
-
-
Save cassiompf/db19d69c793cd966a95754d543359f0c to your computer and use it in GitHub Desktop.
Atividade "Calculadora" do professor Edilson Palmas 23/08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Calc 2</title> | |
</head> | |
<body> | |
<?php | |
$num1 = $_GET["num1"]; | |
$num2 = $_GET["num2"]; | |
$soma = $num1 + $num2; | |
$subt = $num1 - $num2; | |
$mult = $num1 * $num2; | |
$divs = $num1 / $num2; | |
?> | |
<h1>Soma: <?php echo($soma)?></h1> | |
<h1>Subtração: <?php echo($subt)?></h1> | |
<h1>Multiplicação: <?php echo($mult)?></h1> | |
<h1>Divisão: <?php echo($divs)?></h1> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Calc</title> | |
</head> | |
<body> | |
<form action="calculoGet.php" method="GET"> | |
<input type="text" name="num1"> | |
<input type="text" name="num2"> | |
<button type="submit">Enviar</button> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment