Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using PHP. I need to create a FOR loop to display all values of celsius starting from -40 to loop to 100. But

I am using PHP. I need to create a FOR loop to display all values of celsius starting from -40 to loop to 100. But I also need to use the same for loop to convert all of those values into Fahrenheit, how can I fix this?

This is my code so far:

"; } $convert = 9.0/5.0*$i+ 32; ?>
Celsius Fahrenheit
$i°

example output:

image text in transcribed

Fahrenheit Celsius -40 -30 -20 -40 -22 -4 -10 14 0 320 50 10 20 30 40 50 60 70 80 90 100 68 86 104 122 140 158 176 194 212

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

4 9 6 . .

Answered: 1 week ago

Question

What is the quick ratio (times)

Answered: 1 week ago

Question

Understanding Group Leadership Culture and Group Leadership

Answered: 1 week ago