-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb7-05.php
53 lines (48 loc) · 1.04 KB
/
b7-05.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
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>
<?php
/*
* Filename :
* Assignment :
* Created :
* Desription :
* Programmer :
*/
?>
</title>
</head>
<body>
<p>
<h1>For</h1>
<?php
for ($x = 0; $x <= 10; $x++) {
//zolang x kleiner is dan 10, print *, als dat gebeurt is dan ++
echo "*";
}
?>
</p>
<p>
<h1>Do while</h1>
<?php
$y = 1;
do {
echo "*";
$y++;
} while ($y <= 10);
?>
</p>
<p>
<h1>While</h1>
<?php
$z = 1;
while ($z <= 10) {
echo "*";
$z++;
}
?>
</p>
</body>
</html>