Java 5b ⁰F to ⁰C
<!DOCTYPE html>
<html>
<head><title> Converting Temperature from Fahrenheit to Celsius</title>
<script Language="Javascript">
function tempF()
var F,C;
{ F=f1.t1.value; C=(F-32)*5/9;
F=parseFloat(F); alert("entered temperature is"+F);
alert("Given Temperature is "+F+"FAHERENHEIT="+C+"CELSIUS");
}
</script></head>
<body bgcolor="pink">
<form method="post" name="f1">
Enter temperature in terms of Faherenheit<br>
<input type="text" name="t1">
<br>
<input type="submit" name="s1" value="In Celsius" onClick="tempF()">
</form></body></html>
Comments
Post a Comment