CELSIUS TO FAHRENHEIT

************************************************************************ 

W.A.P TO CONVERT CELSIUS TO FAHRENHEIT

************************************************************************  

JAVA Program







   



  
Online compiler

Output:


************************************************************************ 

C Program



Online Compiler 

 

************************************************************************ 

C++ Program

Online Compiler

************************************************************************ 

C# Program


 
 
Output:

************************************************************************ 

PHP Program


Online Compiler

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>

Online Compiler

************************************************************************ 

PYTHON Program

 

Online Compiler: 

************************************************************************  














Comments

Popular posts from this blog

SAME NAME IN CLASS METHOD AND CONSTRUCTOR

PALINDROME NUMBER

FIBONACCI SERIES