{{theTime}}

Search This Blog

Total Pageviews

Java script to convert to Celsius

<!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:

Java Shutdown Hook

Runtime.getRuntime().addShutdownHook(new Thread(() -> {             System.out.println("Shutdown started");              //  Cl...