---
# System prepended metadata

title: 2469. Convert the Temperature
tags: [Leetcode, Easy]

---

# 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;
    }
}
```