<!DOCTYPE html>
<html>
<body>
<h2>Learn JavaScript </h2>
<p>Convert To Celsius: c = (f-32)*(5/9)
95 Celsius=
</p>
<p id="result"></p>
<script>
function converttoCelsius(f) {
return (5/9) * (f-32);
}
document.getElementById("result").innerHTML = converttoCelsius(95);
</script>
</body>
</html>
No comments:
Post a Comment