How to convert Celsius to Fahrenheit using node js

// Function to convert Celsius to Fahrenheit
function celsiusToFahrenheit(celsius) {
  return (celsius * 9/5) + 32;
}

// Example usage
const temperatureCelsius = 25;
const temperatureFahrenheit = celsiusToFahrenheit(temperatureCelsius);
console.log(temperatureFahrenheit);

 

Post your Answer