-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
48 lines (39 loc) · 912 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP</title>
</head>
<body>
<?
print "<b>Zmienne! </b> <br>";
$test=5;
print $test;
print "<br>";
$test+=3.215215;
print $test;
print "<br>";
$test = "73";
print $test;
print "<br>";
$opis = " - ucinska liczba";
print $test.$opis;
$a=2;
$b=10;
$wynik=$a+$b;
print "suma: ".$a." + ".$b." = ".$wynik."<br>";
$wynik=$a-$b;
print "różnica: ".$a." - ".$b." = ".$wynik."<br>";
$wynik=$a*$b;
print "suma: ".$a." * ".$b." = ".$wynik."<br>";
$wynik=$a/$b;
print "suma: ".$a." / ".$b." = ".$wynik."<br>";
$wynik=$a%$b;
print "suma: ".$a." % ".$b." = ".$wynik."<br>";
$wynik=$a**$b;
print "suma: ".$a." ** ".$b." = ".$wynik."<br>";
?>
</body>
</html>