Java 5a. ⁰C to ⁰F

 <!DOCTYPE html>


<html>


<head><title> Converting Temperature from Celsius to Fahrenheit</title>


<script Language="Javascript">


function temp()


{ var C,F; C=f1.t1.value; C=parseFloat(C); alert("Given Temperature is "+C+"="+F);


alert("entered temperature is"+C);


F=(9*C/5)+32;


}


</script></head>


<body bgcolor="yellow">


<form method="post" name="f1">


Enter temperature in terms of Celsius <br>


<input type="text" name="t1">


<br>


<input type="submit" name="s1" value="In Fahrenheit" onClick="temp()">


</form></body></html>

Comments

Popular posts from this blog

Html sop7 image mapping

About me

Sahil