I’m trying to create a table of Fahrenheit and Celcius degrees using a for statement, however I cannot get the column rows and #'s to show up accurately. Tried several ways and cannot figure it out for the life of me!
The left column should display 0-250 degrees increasing and the right column should display the celcius degree increasing.
Here’s the code I have:
[php]<?php
$tempFahrenheit = 0;
$tempCelcius = (5/9)*($tempFahrenheit -32);
for ($tempFahrenheit; $tempFahrenheit <= 250; $tempFahrenheit++)
for ($tempCelcius; $tempCelcius <= 121.11; $tempCelcius++)
{
print("
}
?>[/php]