Leetcode Problem 2469. Convert the Temperature

2469. Convert the Temperature

Leetcode Solutions

Simple Mathematical Conversion

  1. Take the input temperature in Celsius.
  2. Convert the Celsius temperature to Kelvin by adding 273.15.
  3. Convert the Celsius temperature to Fahrenheit by multiplying by 1.80 and then adding 32.00.
  4. Store both converted temperatures in an array.
  5. Return the array containing both Kelvin and Fahrenheit temperatures.
UML Thumbnail

Ask Question

Programming Language
image/screenshot of info(optional)
Full Screen
Loading...

Suggested Answer

Answer
Full Screen
Copy Answer Code
Loading...