# 2469. Convert the Temperature ###### tags: `Leetcode` `Easy` Link: https://leetcode.com/problems/convert-the-temperature/ ## Code ```java= class Solution { public double[] convertTemperature(double celsius) { double[] ans = new double[2]; ans[0] = celsius+273.15; ans[1] = celsius*1.8+32; return ans; } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up