use std::io;

fn main() {
    println!("Enter value in Fahrenheit:");

    let mut f = String::new();

    io::stdin().read_line(&mut f)
            .expect("Failed to read line!");

    let f: f32 = f.trim().parse().expect("Enter valid Fahrenheit value!");

    let c = (f - 32.0) * (5.0/9.0);

    println!("Fahrenheit: {}", f);
    println!("Celsius: {:.2}", c);
}

fn main() {
    println!("Hello, world!");
}

--- 
+++ 
@@ -1,17 +1,3 @@
-use std::io;
-
 fn main() {
-    println!("Enter value in Fahrenheit:");
-
-    let mut f = String::new();
-
-    io::stdin().read_line(&mut f)
-            .expect("Failed to read line!");
-
-    let f: f32 = f.trim().parse().expect("Enter valid Fahrenheit value!");
-
-    let c = (f - 32.0) * (5.0/9.0);
-
-    println!("Fahrenheit: {}", f);
-    println!("Celsius: {:.2}", c);
+    println!("Hello, world!");
 }
Implement converting from fahrenheit to celsius
