aufgabe vom 24-12-11 und vom 24-12-12

This commit is contained in:
danielvici123
2024-12-12 11:49:29 +01:00
parent 77b239659d
commit d423613198
3 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
$sost = ["8", "15","2","4","12","10","1"];
$tage = ["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag","Samstag", "Sontag"];
foreach ($sost as $key =>$value){
$tag = $tage[$key];
echo "<label>---$tag---</label><br>";
echo "Am $tag waren es $value Stunde(n) Sonnenschein<br>";
echo "Am Tag-Nr.: ". ($key+1). " gab es $value h Sonnenschein<br>";
}
?>