Code subject: convert from celsius to fahrenheit or vice versa
Posted: Sun Apr 03, 2011 9:35 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
Following code convert from celsius to fahrenheit or vice versa
Code:
<% 'Functions declaration 'convert Fahrenheit to Celsius Function degreeCelsius (ByVal fahrenheit ) ' conversion equation to celsius degreeCelsius = (fahrenheit - 32) / 1.8 End Function ' conversion equation celsius to Fahrenheit Function degreeFahrenheit(ByVal celsius) degreeFahrenheit= celsius* 1.8 + 32 End Function %>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )