Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

You will use an appropriate looping statement to write a script that displays a list of the Celsius equivalents of zero degrees Fahrenheit through 100 degrees Fahrenheit

<?php
$fTemp = 0;
while ($fTemp <= 100) {
	$cTemp = ($fTemp - 32) * .55;
	echo $fTemp." Fahrenheit is equal to ".$cTemp." Celsius<br />"; 
	$fTemp++;
}
?>
 
PREVIOUS NEXT
Tagged: #You #looping #statement #write #script #displays #list #Celsius #equivalents #degrees #Fahrenheit #degrees #Fahrenheit
ADD COMMENT
Topic
Name
1+4 =