By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

question on loops

P: 47
can anyone tell me where to beging with this one?


Write a program in php which uses a while loop to output a conversion table for 1-100 degrees C to degrees F.



Where F= (C* 9/5) + 32
Jul 25 '07 #1
Share this Question
Share on Google+
4 Replies


pbmods
Expert 5K+
P: 5,821
Heya, ballygowanboy.

Your code should loop through all the values between 1 and 100 and print the result of the CtoF algorithm for each value.
Jul 25 '07 #2

kovik
Expert 100+
P: 1,044
It'd be better suited as a for loop.
Jul 26 '07 #3

pbmods
Expert 5K+
P: 5,821
Heya, volectricity.

It'd be better suited as a for loop.
See this thread.
Jul 26 '07 #4

kovik
Expert 100+
P: 1,044
People have PHP classes? I'd love to take one. ^_^
Jul 26 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.