write javascript program to convert temperature to celcius and farenheit
pl it's urgent
don't spam
I will mark the best ans as brainliest
Answers
Answered by
4
Answer:
JavaScript Code:
function cToF(celsius) { var cTemp = celsius; var cToFahr = cTemp * 9 / 5 + 32; var message = cTemp+'\xB0C is ' + cToFahr + ' \xB0F. '; console. log(message); } function fToC(fahrenheit) { var fTemp = fahrenheit; var fToCel = (fTemp - 32) * 5 / 9; var message = fTemp+'\xB0F is ' + fToCel + '\xB0C.
Similar questions