Show sourcecode
The following files exists in this folder. Click to view.
ovning1.php
ovning2.php
ovning3.php
ovning4.php
ovning5.php
test.php
ovning3.php
21 lines ASCII Windows (CRLF)
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gr_ovning3</title>
</head>
<body>
<?php
$tal = 1;
$adderadeTal = 0;
for ($x = 1; $x <= 100; $x ++){
$tal += 1;
$adderadeTal += $tal;
echo $adderadeTal;
echo "<br>";
}
?>
</body>
</html>