<?php
	include "fctAux.inc.php";

	// appel des fonctions pour creer une page html

	enTete();   // fonction declaree dans fctAux
	contenu();  // fonction a definir ci-dessous
	pied();     // fonction declaree dans fctAux 

	function contenu() {
		echo "\t\t<table>\n\t\t\t<tr>\n\t\t\t\t<th>Celsius</th>\n\t\t\t\t<th>Fahrenheit</th>\n\t\t\t</tr>";
		for($celsius = -50; $celsius<=50;$celsius=$celsius+5) {
			echo "\n\t\t\t<tr>\n\t\t\t\t<td>".$celsius."</td>";
			$fahrenheit = $celsius*9/5+32;
			echo "\n\t\t\t\t<td>".$fahrenheit."</td>\n\t\t\t</tr>\n\t\t";
		}
		echo "</table>";
	}
?>

