This repository has been archived on 2026-06-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
sgd/ysqld/ysql02d/kombinierte_operatoren.php

29 lines
628 B
PHP

<!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Kombinierte Operatoren</title>
</head>
<body>
<p>
<?php
$zahl = 10; //Initialisierung mit 10
echo "$zahl<br>";
$zahl += 2; //addirung mit 2
echo "$zahl<br>";
$zahl -= 2; // Subtrahieren mit 2
echo "$zahl<br>";
$zahl *= 2; // multiplizieren mit 2
echo "$zahl<br>";
$zahl /= 2; // dividieren mit 2
echo "$zahl<br>";
$zahl %= 2; //modulo mit 2 (zahl / 2 = rest in Ganzzahl)
echo $zahl;
?>
</p>
</body>
</html>