feat: 2469_convert_the_temperature
This commit is contained in:
parent
ea7ae7b6ad
commit
bb0ae9bf73
7
2469_convert_the_temperature/Cargo.lock
generated
Normal file
7
2469_convert_the_temperature/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "convert_the_temperature"
|
||||
version = "0.1.0"
|
6
2469_convert_the_temperature/Cargo.toml
Normal file
6
2469_convert_the_temperature/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "convert_the_temperature"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
7
2469_convert_the_temperature/src/lib.rs
Normal file
7
2469_convert_the_temperature/src/lib.rs
Normal file
@ -0,0 +1,7 @@
|
||||
pub struct Solution;
|
||||
|
||||
impl Solution {
|
||||
pub fn convert_temperature(celsius: f64) -> Vec<f64> {
|
||||
vec![celsius + 273.15, celsius * 1.8 + 32.0]
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user