l101/romeomertayasa.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php $ResultCtoF = CtoF($k); $ResultCtoK = CtoK($k); for ($k = 0; $k < 101; $k++){ echo"<div>($k). $ResultCtoF $ResultCtoK </div>"; } function CtoK($Celsius){ $Answer = $Celsius + 273; return $Answer; } function CtoF($Celsius){ $Answer = ($Celsius * 1.8) + 32; return $Answer; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse