1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
use std::io;
pub fn hello() {
    let x:isize = 10;
    let y:isize = 10;
    let z = x + y * 100;
    println!("{z}");
  calle();
  wow();
  one();
  println!("THANK YOU. IT WORKS!\nEmail me at kigangadarell@gmail.com.\nFind my github at https://github.com/Swoiksdmop");
}

pub fn calle() {
    println!("Success!");
}

pub fn wow() {
    println!("Great!");
}

pub fn one() {
  println!("Welcome to Ethan's program of converting Fahrenheit to Celcius!!!\n\nWhat would you like to convert to celcius? >");

  let mut one = String::new();

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

  let one: i64 = one.trim().parse().expect("Failed to read line");
  
  let _conversion = one - 32;
  let _conversion2 = _conversion * 5;
  let _conversion3 = _conversion2 / 9;

  println!("\n\n{one} degrees fahrenheit in celcius is {_conversion3} degrees celcius");
}