Assignment 3

 avatar
unknown
plain_text
3 years ago
522 B
5
Indexable
// You can convert the celsius value to fahrenheit by using the formula:

// fahrenheit = celsius * 1.8 + 32
// let celsius = 95;
// let fahrenheit = celsius * 1.8 + 32
// console.log(`${celsius} degree celsius is equal to ${fahrenheit} degree fahrenheit.`);

// You can convert fahrenheit value to celsius using the formula:
// celsius = (fahrenheit - 32) / 1.8

let fahrenheit = 203;
let celsius = (fahrenheit - 32) / 1.8
console.log(`${fahrenheit} degree fahrenheit is equal to ${celsius} degree celsius.`);
Editor is loading...