mirror of
https://codeberg.org/unbeatable-101/FahrenheitToCelsius.git
synced 2024-06-15 21:46:37 +00:00
Version update +Formating
This commit is contained in:
parent
d61e8aefc3
commit
df49c60121
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ftoc"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -9,10 +9,10 @@ fn convert(temp: f64) -> f64 {
|
|||
|
||||
fn main() {
|
||||
println!("Fahrenheit to Celsius converter");
|
||||
println!("Type press \"ctrl+c\" to end the program");
|
||||
println!("Press \"^C\" to end the program");
|
||||
loop {
|
||||
let mut input = String::new();
|
||||
println!("Please input the temperature in Fahrenheit");
|
||||
println!("Please input the temperature in Fahrenheit:");
|
||||
io::stdin()
|
||||
.read_line(&mut input)
|
||||
.expect("Failed to read line");
|
||||
|
|
Loading…
Reference in New Issue
Block a user