This commit is contained in:
2p01
2025-04-14 13:22:47 +02:00
parent 368bca01bd
commit dd29df8dd1
6 changed files with 225 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Zadanie 02 - Średnia arytmetyczna</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Zadanie 2</h1>
<h2>Autor: Jakub Grzegorczyk</h2>
</header>
<div class="block">
<p>Napisz program, który dla czterech liczb rzeczywistych oblicza i wyświetla ich średnią arytmetyczną. Wynik wyświetl w dwóch postaciach. Bez zaokrąglenia oraz z zaokrągleniem do trzech miejsc po przecinku.</p>
</div>
<div class="block">
<form action="wynik.php" method="post">
<label for="a">Podaj a:</label><br>
<input type="number" id="a" name="a" required><br>
<label for="b">Podaj b:</label><br>
<input type="number" id="b" name="b" required><br>
<label for="c">Podaj c:</label><br>
<input type="number" id="c" name="c" required><br>
<label for="d">Podaj d:</label><br>
<input type="number" id="d" name="d" required><br>
<input type="submit" value="Działaj"><br>
</form>
</div>
</body>
</html>