Uebungsaufgaben_PHP_SS_25/Aufgabe_8/index.php
2025-02-26 12:12:00 +01:00

32 lines
971 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Sie wollen folgende Rechenaufgaben lösen:
24 + 14 34 / 12 * 2 % 4
23847 + 3333 / 34 * 22 12 + 2343234 % 6
123.34 / 2344.3 12035.55 / 4.9 * 123.2
948475.23423 * 7 23433.833 % 22.66 + 34.3 * 4
2343 3434.2 * 333.33 3333.88 / 77777.1 + 12.33 % 6
Implementieren Sie sie in PHP und sorgen Sie dafür, dass diese unten richtig ausgegeben werden. -->
<?php
//Code START
$first = 24 + 14 - 34 / 12 * 2 % 4;
$second = 23847 + 3333 / 34 * 22 - 12 + 2343234 % 6;
$third = 123.34 / 2344.3 - 12035.55 / 4.9 * 123.2;
$fourth = 948475.23423 * 7 - 23433.833 % 22.66 + 34.3 * 4;
$fifth = 2343 - 3434.2 * 333.33 - 3333.88 / 77777.1 + 12.33 % 6;
//Code ENDE
echo "<p>Lösung der 1. Gleichung: $first</p>";
echo "<p>Lösung der 1. Gleichung: $second</p>";
echo "<p>Lösung der 1. Gleichung: $third</p>";
echo "<p>Lösung der 1. Gleichung: $fourth</p>";
echo "<p>Lösung der 1. Gleichung: $fifth</p>";
?>