You are given with a number A i.e.
the temperature in Celcius. Write a program to convert this into
Fahrenheit.
Note: In case of decimal values, round-off
to two decimal places.
function ctof()
{var a=document.getElementById("a").value;
var b=(a*1.8+32);
console.log(b+"fahrenheit") }
Comments
Post a Comment