Webbserverprogrammering

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/exercises/

cart.php
idk.html
incl1.php
index.css
intro.php
ovn_forms1.php
ovn_forms1b.php
ovn_forms2.php
ovn_forms2b.php
ovn_forms3.php
ovn_forms3b.php
ovn_forms4.php
ovn_forms4b.php
ovn_forms5.php
ovn_forms5b.php
ovn_funct1.php
ovn_funct2.php
ovn_funct3.php
ovn_funct4.php
ovn_funct5.php
ovn_funct6.php
ovn_funct7.php
ovn_gr1.php
ovn_gr2.php
ovn_gr3a.php
ovn_gr3b.php
ovn_gr4.php
ovn_gr5.php
ovn_incl1.php
ovn_incl2a.php
ovn_incl2b.php
ovn_incl2c.php
ovn_strings1.php
ovn_strings1b.php
ovn_strings2.php
ovn_strings2b.php
ovn_strings3.php
ovn_strings4.php
ovn_strings4b.php
ovn_strings5.php
ovn_strings5b.php
quiz.php
sidslut.php
sidstart.php
text.php

ovn_gr4.php

27 lines ASCII Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Grunder 4</title>
    <style>
        .container {
            text-align: center;
            margin-top: 30px;
        }

    </style>
</head>
<body class="container">
    <?php 
        $c 
= -20;

        for(
$c = -20; $c < 41; $c+10){
            
$f = ($c * 1.8) + 32;
            echo 
"The temperature in celsius is: ".$c." ";
            echo 
"The temperature in fahrenheit is: ".$f."<br>";
            
$c+=10;
        }
    
?>
</body>
</html>