- Unnötige Datei gelöscht
- erste aufgabe fertig - zweite aufgabe mit style gemacht (style war nicht geforder)
This commit is contained in:
30
progp/24-10-2/kreis_rechnen_1.php
Normal file
30
progp/24-10-2/kreis_rechnen_1.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ergebnis</title>
|
||||
<link rel="stylesheet" href="style.css"></link>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ergebnis:</h1>
|
||||
<div class="main">
|
||||
<?php
|
||||
/* Kreis*/
|
||||
$radius= $_REQUEST['radius'];
|
||||
$flaeche = M_PI * ($radius * $radius);
|
||||
$umfang = 2 * M_PI * $radius;
|
||||
echo "<p>Der <label class='drinne'>Kreisradius</label> beträgt: <label class='drinne'>". $radius. "</label> cm. </p>";
|
||||
echo "<p>Der <label class='drinne'>Kreisfläche</label> beträgt: <label class='drinne'>". $flaeche ."</label> cm². </p>";
|
||||
echo "<p>Der <label class='drinne'>Kreisumfang</label> beträgt: <label class='drinne'>". $umfang ."</label> cm. </p>";
|
||||
|
||||
?>
|
||||
<div>
|
||||
<button onclick="window.location.href='kreis_rechnen_1.html'">Zurück</button>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<p>von daniel</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user