CELSIUS TO FAHRENHEIT
************************************************************************
W.A.P TO CONVERT CELSIUS TO FAHRENHEIT
************************************************************************
JAVA Program
Output:
************************************************************************
C Program
Online Compiler
************************************************************************
C++ Program
Online Compiler
************************************************************************
C# Program
************************************************************************
PHP Program
Php is a server side scripting language.
************************************************************************
JAVASCRIPT Program
<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title>
<script type="text/javascript">
// Fahrenheit = celsius *1.8 +32
function convert() {
var c = document.getElementById('data').value;
var f = c * 1.8 +32;
document.getElementById('res').innerText=(`${f} degree Fahrenheit`);
}
</script>
</head><body>
<input type="number" name="" id="data" step="any"/> Celsius
<button onclick="convert()">Fahrenheit Convert</button>
<h1 id="res"></h1>
</body></html>
************************************************************************
PYTHON Program
************************************************************************
Comments
Post a Comment