Assignment 3

mail@pastecode.io avatar
unknown
plain_text
2 years ago
522 B
2
Indexable
Never
// 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.`);